You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2022/05/26 20:09:51 UTC

[kafka] branch trunk updated: MINOR: Disable ARM builds (#12220)

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

davidarthur 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 8fe73648e3 MINOR: Disable ARM builds (#12220)
8fe73648e3 is described below

commit 8fe73648e3dba4a50e08fb2ad8ea9e83076d1c94
Author: David Arthur <mu...@gmail.com>
AuthorDate: Thu May 26 16:09:39 2022 -0400

    MINOR: Disable ARM builds (#12220)
    
    Also add an additional stage to ARM and PowerPC builds which will fail-fast if the agent is not available.
    
    Reviewers: Jason Gustafson <ja...@confluent.io>
---
 Jenkinsfile | 62 +++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 48 insertions(+), 14 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 55c9d5019f..9ba6803250 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -162,38 +162,72 @@ pipeline {
         }
 
         stage('ARM') {
-          agent { label 'arm4' }
+          // Remove this once infra is fixed. See INFRA-23305 and KAFKA-13941
+          when {
+            expression { false }
+          }
           options {
-            timeout(time: 2, unit: 'HOURS') 
             timestamps()
           }
           environment {
             SCALA_VERSION=2.12
           }
-          steps {
-            doValidation()
-            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-              doTest(env, 'unitTest')
+          stages {
+            stage('Check ARM Agent') {
+              agent { label 'arm4' }
+              options {
+                timeout(time: 5, unit: 'MINUTES')
+              }
+              steps {
+                echo 'ARM ok'
+              }
+            }
+            stage('Run ARM Build') {
+              agent { label 'arm4' }
+              options {
+                timeout(time: 2, unit: 'HOURS')
+              }
+              steps {
+                doValidation()
+                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
+                  doTest(env, 'unitTest')
+                }
+                echo 'Skipping Kafka Streams archetype test for ARM build'
+              }
             }
-            echo 'Skipping Kafka Streams archetype test for ARM build'
           }
         }
 
         stage('PowerPC') {
-          agent { label 'ppc64le' }
           options {
-            timeout(time: 2, unit: 'HOURS')
             timestamps()
           }
           environment {
             SCALA_VERSION=2.12
           }
-          steps {
-            doValidation()
-            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-              doTest(env, 'unitTest')
+          stages {
+            stage('Check PowerPC Agent') {
+              agent { label 'ppc64le' }
+              options {
+                timeout(time: 5, unit: 'MINUTES')
+              }
+              steps {
+                echo 'PowerPC ok'
+              }
+            }
+            stage('Run PowerPC Build') {
+              agent { label 'ppc64le' }
+              options {
+                timeout(time: 2, unit: 'HOURS')
+              }
+              steps {
+                doValidation()
+                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
+                  doTest(env, 'unitTest')
+                }
+                echo 'Skipping Kafka Streams archetype test for PowerPC build'
+              }
             }
-            echo 'Skipping Kafka Streams archetype test for PowerPC build'
           }
         }