@@ -17,7 +17,8 @@ def GRADLE_ENTERPRISE_PLUGIN_ID = 'com.gradle.enterprise'
17
17
def DEVELOCITY_PLUGIN_ID = ' com.gradle.develocity'
18
18
def CCUD_PLUGIN_ID = ' com.gradle.common-custom-user-data-gradle-plugin'
19
19
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' ))
21
22
22
23
def expDir = getInputParam(' develocity.build-validation.expDir' )
23
24
def expId = getInputParam(' develocity.build-validation.expId' )
@@ -111,6 +112,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
111
112
112
113
if (develocityUrl) {
113
114
buildScan. server = develocityUrl
115
+ buildScan. allowUntrustedServer = develocityAllowUntrustedServer
114
116
}
115
117
116
118
if (! buildScan. server) {
@@ -125,6 +127,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
125
127
pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
126
128
if (develocityUrl) {
127
129
develocity. server = develocityUrl
130
+ develocity. allowUntrustedServer = develocityAllowUntrustedServer
128
131
}
129
132
130
133
if (! develocity. server. present) {
@@ -153,6 +156,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
153
156
154
157
if (develocityUrl) {
155
158
settings. gradleEnterprise. server = develocityUrl
159
+ settings. gradleEnterprise. allowUntrustedServer = develocityAllowUntrustedServer
156
160
}
157
161
158
162
if (! settings. gradleEnterprise. server) {
@@ -167,6 +171,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
167
171
settings. pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
168
172
if (develocityUrl) {
169
173
settings. develocity. server = develocityUrl
174
+ settings. develocity. allowUntrustedServer = develocityAllowUntrustedServer
170
175
}
171
176
172
177
if (! settings. develocity. server. present) {
0 commit comments