我们有几个通过 teamcity 构建的 Gradle 项目,我们使用 artifactory 作为远程构建缓存服务器。目前,用户凭据硬编码在 settings.gradle 中。但出于安全原因,我们想更改此设置。
是否可以在构建期间通过 teamcity 动态设置构建缓存的凭据?
有几种方法可以做到这一点。
Temacity 支持密码,并确保它们不会出现在日志中 https://www.jetbrains.com/help/teamcity/typed-parameters.html#Adding+Parameter+Specification
这里有一个很好的例子:Where to put Gradle configuration (i.e. credentials) that should not be committed?