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

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

commit 5d8f4614d3732b401525f54113015faeea83e121
Author: David Arthur <[email protected]>
AuthorDate: Wed Mar 3 15:57:27 2021 -0500

    KAFKA-10759 Add ARM build stage (#9992)
    
    Only validation and unit test stages are enabled
    
    Co-authored-by: Peng.Lei <[email protected]>
---
 Jenkinsfile | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 87840d5..5579887 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -33,12 +33,12 @@ def doValidation() {
   '''
 }
 
-def doTest() {
-  sh '''
-    ./gradlew -PscalaVersion=$SCALA_VERSION unitTest integrationTest \
+def doTest(target = "unitTest integrationTest") {
+  sh """
+    ./gradlew -PscalaVersion=$SCALA_VERSION ${target} \
         --profile --no-daemon --continue 
-PtestLoggingEvents=started,passed,skipped,failed \
         -PignoreFailures=true -PmaxParallelForks=2 -PmaxTestRetries=1 
-PmaxTestRetryFailures=5
-  '''
+  """
   junit '**/build/test-results/**/TEST-*.xml'
 }
 
@@ -158,6 +158,25 @@ pipeline {
             echo 'Skipping Kafka Streams archetype test for Java 15'
           }
         }
+
+        stage('ARM') {
+          agent { label 'arm4' }
+          options {
+            timeout(time: 2, unit: 'HOURS') 
+            timestamps()
+          }
+          environment {
+            SCALA_VERSION=2.12
+          }
+          steps {
+            setupGradle()
+            doValidation()
+            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
+              doTest('unitTest')
+            }
+            echo 'Skipping Kafka Streams archetype test for ARM build'
+          }
+        }
       }
     }
   }

Reply via email to