@@ -17,7 +17,8 @@ def GRADLE_ENTERPRISE_PLUGIN_ID = 'com.gradle.enterprise'
1717def DEVELOCITY_PLUGIN_ID = ' com.gradle.develocity'
1818def 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
2223def expDir = getInputParam(' develocity.build-validation.expDir' )
2324def 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) {
0 commit comments