@@ -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' )
@@ -103,11 +101,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
103
101
pluginManager. withPlugin(BUILD_SCAN_PLUGIN_ID ) {
104
102
// only execute if Develocity plugin isn't applied
105
103
if (pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
106
-
107
- if (develocityUrl) {
108
- buildScan. server = develocityUrl
109
- }
110
-
111
104
if (! buildScan. server) {
112
105
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy#gradle_5_x_2' )
113
106
}
@@ -118,10 +111,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
118
111
}
119
112
120
113
pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
121
- if (develocityUrl) {
122
- develocity. server = develocityUrl
123
- }
124
-
125
114
if (! develocity. server. present) {
126
115
develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
127
116
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
@@ -145,11 +134,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
145
134
settings. pluginManager. withPlugin(GRADLE_ENTERPRISE_PLUGIN_ID ) {
146
135
// only execute if Develocity plugin isn't applied
147
136
if (settings. pluginManager. hasPlugin(DEVELOCITY_PLUGIN_ID )) return
148
-
149
- if (develocityUrl) {
150
- settings. gradleEnterprise. server = develocityUrl
151
- }
152
-
153
137
if (! settings. gradleEnterprise. server) {
154
138
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/legacy/#gradle_6_x_and_later_2' )
155
139
}
@@ -160,10 +144,6 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
160
144
}
161
145
162
146
settings. pluginManager. withPlugin(DEVELOCITY_PLUGIN_ID ) {
163
- if (develocityUrl) {
164
- settings. develocity. server = develocityUrl
165
- }
166
-
167
147
if (! settings. develocity. server. present) {
168
148
settings. develocity. buildScan. publishing. onlyIf { false } // prevent publishing to scans.gradle.com
169
149
failMissingDevelocityServerURL(' https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity' )
0 commit comments