@@ -17,9 +17,6 @@ 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.build-validation.url' )
21
- def develocityAllowUntrustedServer = Boolean . parseBoolean(getInputParam(' develocity.build-validation.allow-untrusted-server' ))
22
-
23
20
def expDir = getInputParam(' develocity.build-validation.expDir' )
24
21
def expId = getInputParam(' develocity.build-validation.expId' )
25
22
def runId = getInputParam(' develocity.build-validation.runId' )
@@ -109,12 +106,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
109
106
pluginManager. withPlugin(BUILD_SCAN_PLUGIN_ID ) {
110
107
// only execute if Develocity plugin isn't applied
111
108
if (pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
112
-
113
- if (develocityUrl) {
114
- buildScan. server = develocityUrl
115
- buildScan. allowUntrustedServer = develocityAllowUntrustedServer
116
- }
117
-
118
109
if (! buildScan. server) {
119
110
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy#gradle_5_x_2' )
120
111
}
@@ -125,11 +116,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
125
116
}
126
117
127
118
pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
128
- if (develocityUrl) {
129
- develocity. server = develocityUrl
130
- develocity. allowUntrustedServer = develocityAllowUntrustedServer
131
- }
132
-
133
119
if (! develocity. server. present) {
134
120
develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
135
121
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
@@ -153,12 +139,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
153
139
settings. pluginManager. withPlugin(GRADLE_ENTERPRISE_PLUGIN_ID ) {
154
140
// only execute if Develocity plugin isn't applied
155
141
if (settings. pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
156
-
157
- if (develocityUrl) {
158
- settings. gradleEnterprise. server = develocityUrl
159
- settings. gradleEnterprise. allowUntrustedServer = develocityAllowUntrustedServer
160
- }
161
-
162
142
if (! settings. gradleEnterprise. server) {
163
143
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy/#gradle_6_x_and_later_2' )
164
144
}
@@ -169,11 +149,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
169
149
}
170
150
171
151
settings. pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
172
- if (develocityUrl) {
173
- settings. develocity. server = develocityUrl
174
- settings. develocity. allowUntrustedServer = develocityAllowUntrustedServer
175
- }
176
-
177
152
if (! settings. develocity. server. present) {
178
153
settings. develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
179
154
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
0 commit comments