You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2021/04/12 05:51:31 UTC

[kafka] branch trunk updated: MINOR: Remove gradleSetup from Jenkinsfile (#10522)

This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2899200  MINOR: Remove gradleSetup from Jenkinsfile (#10522)
2899200 is described below

commit 2899200c9741a647f89808f212267a689b17ebaf
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Sun Apr 11 22:49:33 2021 -0700

    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 <ch...@gmail.com>
---
 Jenkinsfile | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index c9ea085..a966bf2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,14 +17,6 @@
  *
  */
 
-def setupGradle() {
-  // Delete gradle cache to workaround cache corruption bugs, see KAFKA-3167
-  dir('.gradle') {
-    deleteDir()
-  }
-  sh './gradlew -version'
-}
-
 def doValidation() {
   sh """
     ./gradlew -PscalaVersion=$SCALA_VERSION clean compileJava compileScala compileTestJava compileTestScala \
@@ -125,7 +117,6 @@ pipeline {
             SCALA_VERSION=2.12
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             tryStreamsArchetype()
@@ -145,7 +136,6 @@ pipeline {
             SCALA_VERSION=2.13
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             echo 'Skipping Kafka Streams archetype test for Java 11'
@@ -165,7 +155,6 @@ pipeline {
             SCALA_VERSION=2.13
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             echo 'Skipping Kafka Streams archetype test for Java 15'
@@ -182,7 +171,6 @@ pipeline {
             SCALA_VERSION=2.12
           }
           steps {
-            setupGradle()
             doValidation()
             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
               doTest(env, 'unitTest')
@@ -214,7 +202,6 @@ pipeline {
             SCALA_VERSION=2.13
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             tryStreamsArchetype()
@@ -238,7 +225,6 @@ pipeline {
             SCALA_VERSION=2.12
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             echo 'Skipping Kafka Streams archetype test for Java 11'
@@ -262,7 +248,6 @@ pipeline {
             SCALA_VERSION=2.12
           }
           steps {
-            setupGradle()
             doValidation()
             doTest(env)
             echo 'Skipping Kafka Streams archetype test for Java 15'