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 cdb2710  Add more 'set -x' (#99)
cdb2710 is described below

commit cdb2710c3bba7eeaa230a43614a659dca3b8af54
Author: Brian Neradt <[email protected]>
AuthorDate: Tue May 3 16:41:19 2022 -0500

    Add more 'set -x' (#99)
    
    This adds more set -x calls so we can have greater visibility into what
    commands are being run in CI when there is a failure.
---
 jenkins/bin/environment.sh           | 5 ++---
 jenkins/bin/in_tree.sh               | 2 ++
 jenkins/bin/out_of_tree.sh           | 2 ++
 jenkins/bin/rat.sh                   | 2 ++
 jenkins/bin/regression.sh            | 2 ++
 jenkins/branch/clang_format.pipeline | 1 +
 jenkins/branch/docs.pipeline         | 1 +
 jenkins/branch/in_tree.pipeline      | 1 +
 jenkins/branch/os_build.pipeline     | 2 ++
 jenkins/branch/out_of_tree.pipeline  | 1 +
 jenkins/branch/rat.pipeline          | 1 +
 11 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/jenkins/bin/environment.sh b/jenkins/bin/environment.sh
index 4c336b0..04b3cb6 100755
--- a/jenkins/bin/environment.sh
+++ b/jenkins/bin/environment.sh
@@ -16,8 +16,9 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+set -x
+
 # Show which platform we're actually building on
-set +x
 
 # Deduct if this build is on a docker instance
 IS_DOCKER="no"
@@ -149,5 +150,3 @@ fi
 #export CCACHE_BASEDIR=${ATS_BUILD_BASEDIR}
 #export CCACHE_COMPRESS=true
 
-# Restore verbose shell output
-set -x
diff --git a/jenkins/bin/in_tree.sh b/jenkins/bin/in_tree.sh
index c866cd0..4b3686b 100755
--- a/jenkins/bin/in_tree.sh
+++ b/jenkins/bin/in_tree.sh
@@ -18,6 +18,8 @@
 
 # This does intentionally not run the regressions, it's primarily a "build" 
test
 
+set -x
+
 cd "${WORKSPACE}/src"
 
 autoreconf -fi
diff --git a/jenkins/bin/out_of_tree.sh b/jenkins/bin/out_of_tree.sh
index edc5273..650a216 100755
--- a/jenkins/bin/out_of_tree.sh
+++ b/jenkins/bin/out_of_tree.sh
@@ -18,6 +18,8 @@
 
 # This does intentionally not run the regressions, it's primarily a "build" 
test
 
+set -x
+
 cd "${WORKSPACE}/src"
 
 autoreconf -fi
diff --git a/jenkins/bin/rat.sh b/jenkins/bin/rat.sh
index ce67af7..4b197fc 100755
--- a/jenkins/bin/rat.sh
+++ b/jenkins/bin/rat.sh
@@ -16,6 +16,8 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+set -x
+
 cd "${WORKSPACE}/src"
 
 autoreconf -if && ./configure
diff --git a/jenkins/bin/regression.sh b/jenkins/bin/regression.sh
index 66901e5..403b57a 100755
--- a/jenkins/bin/regression.sh
+++ b/jenkins/bin/regression.sh
@@ -16,6 +16,8 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+set -x
+
 #cd "${ATS_BUILD_BASEDIR}/build"
 #cd "${ATS_BUILD_BASEDIR}"
 [ -d BUILDS ] && cd BUILDS
diff --git a/jenkins/branch/clang_format.pipeline 
b/jenkins/branch/clang_format.pipeline
index e4ac10b..bc62900 100644
--- a/jenkins/branch/clang_format.pipeline
+++ b/jenkins/branch/clang_format.pipeline
@@ -59,6 +59,7 @@ pipeline {
                                echo 'Starting build'
                                dir('src') {
                                        sh '''
+                                        set -x
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/clang-format.sh
                                        '''
                                        echo "Skipping build"
diff --git a/jenkins/branch/docs.pipeline b/jenkins/branch/docs.pipeline
index f922473..14e7478 100644
--- a/jenkins/branch/docs.pipeline
+++ b/jenkins/branch/docs.pipeline
@@ -56,6 +56,7 @@ pipeline {
                                dir('src') {
                                        // For Jenkins debugging. We comit to 
the top of README in our debug PRs.
                                        sh '''
+                                        set -x
                                        head README
                                        source ../ci/jenkins/bin/environment.sh
                                        bash -x ../ci/jenkins/bin/docs.sh
diff --git a/jenkins/branch/in_tree.pipeline b/jenkins/branch/in_tree.pipeline
index 36de751..03b1700 100644
--- a/jenkins/branch/in_tree.pipeline
+++ b/jenkins/branch/in_tree.pipeline
@@ -64,6 +64,7 @@ pipeline {
                                dir('src') {
                                        echo "Building"
                                        sh '''
+                                        set -x
                                        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 71cf9ca..43ec48f 100644
--- a/jenkins/branch/os_build.pipeline
+++ b/jenkins/branch/os_build.pipeline
@@ -56,6 +56,7 @@ pipeline {
                                echo 'Starting Build'
                                dir('src') {
                                        sh '''
+                                        set -x
                                        source ../ci/jenkins/bin/environment.sh
                                        autoreconf -if
                                        source ../ci/jenkins/bin/build.sh
@@ -69,6 +70,7 @@ pipeline {
                                echo 'Starting Tests'
                                dir('src') {
                                        sh '''
+                                        set -x
                                        source ../ci/jenkins/bin/environment.sh
                                        source ../ci/jenkins/bin/regression.sh
                                        '''
diff --git a/jenkins/branch/out_of_tree.pipeline 
b/jenkins/branch/out_of_tree.pipeline
index 7c5970e..8bd151b 100644
--- a/jenkins/branch/out_of_tree.pipeline
+++ b/jenkins/branch/out_of_tree.pipeline
@@ -64,6 +64,7 @@ pipeline {
                                dir('src') {
                                        echo "Building"
                                        sh '''
+                                        set -x
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/out_of_tree.sh
                                        '''
                                }
diff --git a/jenkins/branch/rat.pipeline b/jenkins/branch/rat.pipeline
index f3204f7..a7bc6fb 100644
--- a/jenkins/branch/rat.pipeline
+++ b/jenkins/branch/rat.pipeline
@@ -61,6 +61,7 @@ pipeline {
                                echo 'Starting build'
                                dir('src') {
                                        sh '''
+                                        set -x
                                        source ../ci/jenkins/bin/environment.sh 
&& ../ci/jenkins/bin/rat.sh
                                        '''
                                }

Reply via email to