You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2022/04/20 18:19:44 UTC

[trafficserver-ci] branch main updated: Put fedora autoreconf in a loop (#95)

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

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new c2b368e  Put fedora autoreconf in a loop (#95)
c2b368e is described below

commit c2b368e48791259818420496cd7e52ba0cfaf0c4
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Wed Apr 20 13:19:30 2022 -0500

    Put fedora autoreconf in a loop (#95)
    
    This will attempt to run autoreconf in a loop to see whether that helps
    make it more stable.
---
 jenkins/github/fedora.pipeline | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/jenkins/github/fedora.pipeline b/jenkins/github/fedora.pipeline
index fd35e4e..9e92e58 100644
--- a/jenkins/github/fedora.pipeline
+++ b/jenkins/github/fedora.pipeline
@@ -9,7 +9,7 @@ pipeline {
     }
     environment {
         CCACHE_DIR = "/tmp/ccache"
-        CCACHE_BASEDIR = "${WORKSPACE}"        
+        CCACHE_BASEDIR = "${WORKSPACE}"
     }
     stages {
         stage('Clone') {
@@ -50,7 +50,25 @@ pipeline {
                     sh '''#!/bin/bash
                         set -x
                         set -e
-                        CONFIG_SHELL=/bin/bash autoreconf -fiv
+
+                        autoreconf_succeeded=0
+                        for i in {1..5}
+                        do
+                          if CONFIG_SHELL=/bin/bash autoreconf -fiv
+                          then
+                            autoreconf_succeeded=1
+                            break
+                          fi
+                          sleep 2
+                          echo "autoreconf failed attempt ${i}/5"
+                        done
+
+                        if [ ${autoreconf_succeeded} -eq 0 ]
+                        then
+                          echo "Failed to run autoreconf. Exiting with an error."
+                          exit 1
+                        fi
+
                         # Remove the --with-openssl argument when we support OpenSSL 3.x.
                         ./configure --with-openssl=/opt/openssl-quic --enable-experimental-plugins --enable-example-plugins --prefix=/tmp/ats/ --enable-werror --enable-debug --enable-wccp --enable-luajit --enable-ccache
                         make -j4 V=1 Q=
@@ -62,8 +80,8 @@ pipeline {
             }
         }
     }
-    post { 
-        cleanup { 
+    post {
+        cleanup {
             cleanWs()
         }
     }