【问题标题】:Set Gradle build-cache credentials via Teamcity通过 Teamcity 设置 Gradle 构建缓存凭据
【发布时间】:2021-08-09 21:44:33
【问题描述】:

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

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

【问题讨论】:

标签: gradle teamcity


【解决方案1】:

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

将登录名/密码存储在 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?

【讨论】:

    猜你喜欢
    • 2020-02-23
    • 1970-01-01
    • 2011-11-14
    • 1970-01-01
    • 2016-09-18
    • 1970-01-01
    • 2014-09-13
    • 1970-01-01
    • 2023-03-15
    相关资源
    最近更新 更多