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 79f6ca9  Adding set -e to various pipeline scripts. (#169)
79f6ca9 is described below

commit 79f6ca9e1224a177c697e6defcd75fda004433d1
Author: Brian Neradt <brian.ner...@gmail.com>
AuthorDate: Tue Jun 6 11:18:04 2023 -0500

    Adding set -e to various pipeline scripts. (#169)
---
 jenkins/branch/autest.pipeline      | 1 +
 jenkins/branch/cmake.pipeline       | 1 +
 jenkins/branch/coverage.pipeline    | 6 ++++++
 jenkins/branch/docs.pipeline        | 1 +
 jenkins/branch/freebsd.pipeline     | 1 +
 jenkins/branch/in_tree.pipeline     | 1 +
 jenkins/branch/os_build.pipeline    | 2 ++
 jenkins/branch/osx-m1.pipeline      | 1 +
 jenkins/branch/out_of_tree.pipeline | 1 +
 jenkins/branch/quiche.pipeline      | 2 ++
 jenkins/branch/rat.pipeline         | 1 +
 11 files changed, 18 insertions(+)

diff --git a/jenkins/branch/autest.pipeline b/jenkins/branch/autest.pipeline
index f5f904e..fcdf6d4 100644
--- a/jenkins/branch/autest.pipeline
+++ b/jenkins/branch/autest.pipeline
@@ -74,6 +74,7 @@ pipeline {
                                echo 'Starting build'
                                dir('src') {
                                        sh '''
+                                       set -e
                                        source /opt/rh/gcc-toolset-11/enable
                                        sudo update-crypto-policies --set LEGACY
 
diff --git a/jenkins/branch/cmake.pipeline b/jenkins/branch/cmake.pipeline
index 80d7d5f..3d8098d 100644
--- a/jenkins/branch/cmake.pipeline
+++ b/jenkins/branch/cmake.pipeline
@@ -65,6 +65,7 @@ pipeline {
                                        echo "Building"
                                        sh '''
                                        set -x
+                                       set -e
                                        export PATH=/opt/bin:${PATH}
                                        source ../ci/jenkins/bin/environment.sh
                                        ../ci/jenkins/bin/cmake.sh
diff --git a/jenkins/branch/coverage.pipeline b/jenkins/branch/coverage.pipeline
index 447988c..3366d02 100644
--- a/jenkins/branch/coverage.pipeline
+++ b/jenkins/branch/coverage.pipeline
@@ -66,6 +66,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                        set -x
+                                       set -e
 
                                        source /opt/rh/gcc-toolset-11/enable
                                        sudo update-crypto-policies --set LEGACY
@@ -101,6 +102,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                source 
/opt/rh/gcc-toolset-11/enable
 
                                                # Create a base tracefile 
before the tests are run.
@@ -115,6 +117,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                [ "${RUN_UNIT_TESTS}" == "true" 
] || exit 0
                                                source 
/opt/rh/gcc-toolset-11/enable
                                                make -j4 check
@@ -124,6 +127,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                [ "${RUN_REGRESSION_TESTS}" == 
"true" ] || exit 0
                                                /tmp/ats/bin/traffic_server -K 
-k -R 1
                                                 '''
@@ -132,6 +136,7 @@ pipeline {
                                dir('src/tests') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                [ "${RUN_AUTEST}" == "true" ] 
|| exit 0
 
                                                # We want to pick up the 
OpenSSL-QUIC version of curl in /opt/bin.
@@ -150,6 +155,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                source 
/opt/rh/gcc-toolset-11/enable
 
                                                # Use `.` for --directory, not 
`pwd`. For some reason that seems
diff --git a/jenkins/branch/docs.pipeline b/jenkins/branch/docs.pipeline
index 5d42207..71e5b2e 100644
--- a/jenkins/branch/docs.pipeline
+++ b/jenkins/branch/docs.pipeline
@@ -56,6 +56,7 @@ pipeline {
                                dir('src') {
                                        sh '''
                                        set -x
+                                       set -e
                                        source ../ci/jenkins/bin/environment.sh
                                        bash -x ../ci/jenkins/bin/docs.sh
                                        '''
diff --git a/jenkins/branch/freebsd.pipeline b/jenkins/branch/freebsd.pipeline
index d45f84b..e6e5303 100644
--- a/jenkins/branch/freebsd.pipeline
+++ b/jenkins/branch/freebsd.pipeline
@@ -25,6 +25,7 @@ pipeline {
                                echo 'Starting build'
                                dir('src') {
                                        sh '''
+                                               set -e
                                                autoreconf -fiv
                                                ./configure 
--enable-experimental-plugins
                                                gmake -j3
diff --git a/jenkins/branch/in_tree.pipeline b/jenkins/branch/in_tree.pipeline
index 03b1700..5322020 100644
--- a/jenkins/branch/in_tree.pipeline
+++ b/jenkins/branch/in_tree.pipeline
@@ -65,6 +65,7 @@ pipeline {
                                        echo "Building"
                                        sh '''
                                         set -x
+                                        set -e
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/in_tree.sh
                                        '''
                                }
diff --git a/jenkins/branch/os_build.pipeline b/jenkins/branch/os_build.pipeline
index 6773a53..a25c00d 100644
--- a/jenkins/branch/os_build.pipeline
+++ b/jenkins/branch/os_build.pipeline
@@ -57,6 +57,7 @@ pipeline {
                                dir('src') {
                                        sh '''
                                        set -x
+                                       set -e
                                        source ../ci/jenkins/bin/environment.sh
                                        autoreconf -if
                                        source ../ci/jenkins/bin/build.sh
@@ -71,6 +72,7 @@ pipeline {
                                dir('src') {
                                        sh '''
                                        set -x
+                                       set -e
                                        source ../ci/jenkins/bin/environment.sh
                                        source ../ci/jenkins/bin/regression.sh
                                        '''
diff --git a/jenkins/branch/osx-m1.pipeline b/jenkins/branch/osx-m1.pipeline
index 20c3ceb..c38ba35 100644
--- a/jenkins/branch/osx-m1.pipeline
+++ b/jenkins/branch/osx-m1.pipeline
@@ -25,6 +25,7 @@ pipeline {
                                echo 'Starting build'
                                dir('src') {
                                        sh '''
+                                               set -e
                                                autoreconf -fiv
                                                CC="clang" \
                                                        CXX="clang++" \
diff --git a/jenkins/branch/out_of_tree.pipeline 
b/jenkins/branch/out_of_tree.pipeline
index 8bd151b..14bb8a6 100644
--- a/jenkins/branch/out_of_tree.pipeline
+++ b/jenkins/branch/out_of_tree.pipeline
@@ -65,6 +65,7 @@ pipeline {
                                        echo "Building"
                                        sh '''
                                         set -x
+                                        set -e
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/out_of_tree.sh
                                        '''
                                }
diff --git a/jenkins/branch/quiche.pipeline b/jenkins/branch/quiche.pipeline
index 91c5e0d..455aea2 100644
--- a/jenkins/branch/quiche.pipeline
+++ b/jenkins/branch/quiche.pipeline
@@ -66,6 +66,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                        set -x
+                                       set -e
 
                                        source /opt/rh/gcc-toolset-11/enable
 
@@ -98,6 +99,7 @@ pipeline {
                                dir('src') {
                                        sh '''#!/bin/bash
                                                set -x
+                                               set -e
                                                source 
/opt/rh/gcc-toolset-11/enable
                                                make -j4 V=1 Q= check
                                                /tmp/ats/bin/traffic_server -K 
-k -R 1
diff --git a/jenkins/branch/rat.pipeline b/jenkins/branch/rat.pipeline
index a7bc6fb..955eb64 100644
--- a/jenkins/branch/rat.pipeline
+++ b/jenkins/branch/rat.pipeline
@@ -62,6 +62,7 @@ pipeline {
                                dir('src') {
                                        sh '''
                                         set -x
+                                        set -e
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/rat.sh
                                        '''
                                }

Reply via email to