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