通过 Teamcity

我们有几个通过 teamcity 构建的 Gradle 项目,我们使用 artifactory 作为远程构建缓存服务器。目前,用户凭据硬编码在 settings.gradle 中。但出于安全原因,我们想更改此设置。

是否可以在构建期间通过 teamcity 动态设置构建缓存的凭据?

rumengsihuan 回答:通过 Teamcity

有几种方法可以做到这一点。

将登录名/密码存储在 Teamcity 中。

Temacity 支持密码,并确保它们不会出现在日志中 https://www.jetbrains.com/help/teamcity/typed-parameters.html#Adding+Parameter+Specification

在 Teamcity 用户中存储密码

这里有一个很好的例子:Where to put Gradle configuration (i.e. credentials) that should not be committed?

本文链接:https://www.f2er.com/30108.html

大家都在问