Skip to content

Commit 2899200

Browse files
authored
MINOR: Remove gradleSetup from Jenkinsfile (#10522)
We no longer need this since: 1. The PR and branch jobs are configured to `clean before checkout`. 2. The Gradle build outputs the gradle version on start-up. The description of `clean before checkout` is: > Clean up the workspace before every checkout by deleting all untracked files and directories, including those which are specified in .gitignore. It also resets all tracked files to their versioned state. This ensures that the workspace is in the same state as if you cloned and checked out in a brand-new empty directory, and ensures that your build is not affected by the files generated by the previous build. Reviewers: Chia-Ping Tsai <[email protected]>
1 parent 2004f5b commit 2899200

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Jenkinsfile

-15
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
*
1818
*/
1919

20-
def setupGradle() {
21-
// Delete gradle cache to workaround cache corruption bugs, see KAFKA-3167
22-
dir('.gradle') {
23-
deleteDir()
24-
}
25-
sh './gradlew -version'
26-
}
27-
2820
def doValidation() {
2921
sh """
3022
./gradlew -PscalaVersion=$SCALA_VERSION clean compileJava compileScala compileTestJava compileTestScala \
@@ -125,7 +117,6 @@ pipeline {
125117
SCALA_VERSION=2.12
126118
}
127119
steps {
128-
setupGradle()
129120
doValidation()
130121
doTest(env)
131122
tryStreamsArchetype()
@@ -145,7 +136,6 @@ pipeline {
145136
SCALA_VERSION=2.13
146137
}
147138
steps {
148-
setupGradle()
149139
doValidation()
150140
doTest(env)
151141
echo 'Skipping Kafka Streams archetype test for Java 11'
@@ -165,7 +155,6 @@ pipeline {
165155
SCALA_VERSION=2.13
166156
}
167157
steps {
168-
setupGradle()
169158
doValidation()
170159
doTest(env)
171160
echo 'Skipping Kafka Streams archetype test for Java 15'
@@ -182,7 +171,6 @@ pipeline {
182171
SCALA_VERSION=2.12
183172
}
184173
steps {
185-
setupGradle()
186174
doValidation()
187175
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
188176
doTest(env, 'unitTest')
@@ -214,7 +202,6 @@ pipeline {
214202
SCALA_VERSION=2.13
215203
}
216204
steps {
217-
setupGradle()
218205
doValidation()
219206
doTest(env)
220207
tryStreamsArchetype()
@@ -238,7 +225,6 @@ pipeline {
238225
SCALA_VERSION=2.12
239226
}
240227
steps {
241-
setupGradle()
242228
doValidation()
243229
doTest(env)
244230
echo 'Skipping Kafka Streams archetype test for Java 11'
@@ -262,7 +248,6 @@ pipeline {
262248
SCALA_VERSION=2.12
263249
}
264250
steps {
265-
setupGradle()
266251
doValidation()
267252
doTest(env)
268253
echo 'Skipping Kafka Streams archetype test for Java 15'

0 commit comments

Comments
 (0)