Skip to content

Commit 8d75923

Browse files
committed
Rename internal Develocity URL property and configure allow untrusted server
1 parent 87accd1 commit 8d75923

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

components/scripts/gradle/gradle-init-scripts/configure-build-validation.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def GRADLE_ENTERPRISE_PLUGIN_ID = 'com.gradle.enterprise'
1717
def DEVELOCITY_PLUGIN_ID = 'com.gradle.develocity'
1818
def CCUD_PLUGIN_ID = 'com.gradle.common-custom-user-data-gradle-plugin'
1919

20-
def develocityUrl = getInputParam('develocity.url')
20+
def develocityUrl = getInputParam('develocity.build-validation.url')
21+
def develocityAllowUntrustedServer = Boolean.parseBoolean(getInputParam('develocity.build-validation.allow-untrusted-server'))
2122

2223
def expDir = getInputParam('develocity.build-validation.expDir')
2324
def expId = getInputParam('develocity.build-validation.expId')
@@ -111,6 +112,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
111112

112113
if (develocityUrl) {
113114
buildScan.server = develocityUrl
115+
buildScan.allowUntrustedServer = develocityAllowUntrustedServer
114116
}
115117

116118
if (!buildScan.server) {
@@ -125,6 +127,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
125127
pluginManager.withPlugin(DEVELOCITY_PLUGIN_ID) {
126128
if (develocityUrl) {
127129
develocity.server = develocityUrl
130+
develocity.allowUntrustedServer = develocityAllowUntrustedServer
128131
}
129132

130133
if (!develocity.server.present) {
@@ -153,6 +156,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
153156

154157
if (develocityUrl) {
155158
settings.gradleEnterprise.server = develocityUrl
159+
settings.gradleEnterprise.allowUntrustedServer = develocityAllowUntrustedServer
156160
}
157161

158162
if (!settings.gradleEnterprise.server) {
@@ -167,6 +171,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
167171
settings.pluginManager.withPlugin(DEVELOCITY_PLUGIN_ID) {
168172
if (develocityUrl) {
169173
settings.develocity.server = develocityUrl
174+
settings.develocity.allowUntrustedServer = develocityAllowUntrustedServer
170175
}
171176

172177
if (!settings.develocity.server.present) {

components/scripts/lib/gradle.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ invoke_gradle() {
2929

3030
if [ -n "${ge_server}" ]; then
3131
args+=(
32-
-Ddevelocity.url="${ge_server}"
33-
-Ddevelocity.allow-untrusted-server=false
32+
-Ddevelocity.build-validation.url="${ge_server}"
33+
-Ddevelocity.build-validation.allow-untrusted-server=false
3434
)
3535
fi
3636

0 commit comments

Comments
 (0)