@@ -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' )
@@ -113,12 +110,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
113
110
pluginManager. withPlugin(BUILD_SCAN_PLUGIN_ID ) {
114
111
// only execute if Develocity plugin isn't applied
115
112
if (pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
116
-
117
- if (develocityUrl) {
118
- buildScan. server = develocityUrl
119
- buildScan. allowUntrustedServer = develocityAllowUntrustedServer
120
- }
121
-
122
113
if (! buildScan. server) {
123
114
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy#gradle_5_x_2' )
124
115
}
@@ -129,11 +120,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
129
120
}
130
121
131
122
pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
132
- if (develocityUrl) {
133
- develocity. server = develocityUrl
134
- develocity. allowUntrustedServer = develocityAllowUntrustedServer
135
- }
136
-
137
123
if (! develocity. server. present) {
138
124
develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
139
125
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
@@ -157,12 +143,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
157
143
settings. pluginManager. withPlugin(GRADLE_ENTERPRISE_PLUGIN_ID ) {
158
144
// only execute if Develocity plugin isn't applied
159
145
if (settings. pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
160
-
161
- if (develocityUrl) {
162
- settings. gradleEnterprise. server = develocityUrl
163
- settings. gradleEnterprise. allowUntrustedServer = develocityAllowUntrustedServer
164
- }
165
-
166
146
if (! settings. gradleEnterprise. server) {
167
147
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy/#gradle_6_x_and_later_2' )
168
148
}
@@ -173,11 +153,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
173
153
}
174
154
175
155
settings. pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
176
- if (develocityUrl) {
177
- settings. develocity. server = develocityUrl
178
- settings. develocity. allowUntrustedServer = develocityAllowUntrustedServer
179
- }
180
-
181
156
if (! settings. develocity. server. present) {
182
157
settings. develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
183
158
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
0 commit comments