From 3f302cf79c9b5a5a3cecc7a50f23560bca8d58ab Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Fri, 21 Feb 2014 11:13:17 -0700 Subject: [PATCH] jenkins: show errors and fail fast during job execution Jenkins will dynamically write the commands in its database into a script and run it with "-x" and "-e" in order to display each step and fail after the first step fails. Now that our commands are stored in Git, ensure that we're doing the same thing. Signed-off-by: Ken Dreyer --- jenkins/build | 3 +++ jenkins/package | 3 +++ jenkins/setup | 3 +++ 3 files changed, 9 insertions(+) diff --git a/jenkins/build b/jenkins/build index 3bb1307b..645f3df4 100644 --- a/jenkins/build +++ b/jenkins/build @@ -3,6 +3,9 @@ # This is a script that runs inside Jenkins. # http://jenkins.ceph.com/job/ceph-build/ +set -x +set -e + # Jenkins will set $RELEASE as a parameter in the job configuration. if $RELEASE ; then # This is a formal release. Sign it with the release key. diff --git a/jenkins/package b/jenkins/package index 90d02014..d5ead283 100644 --- a/jenkins/package +++ b/jenkins/package @@ -3,6 +3,9 @@ # This is a script that runs inside Jenkins. # http://jenkins.ceph.com/job/ceph-package/ +set -x +set -e + # for dir in * ; do echo $dir diff --git a/jenkins/setup b/jenkins/setup index a0b12c58..e6cb626f 100644 --- a/jenkins/setup +++ b/jenkins/setup @@ -3,6 +3,9 @@ # This is a script that runs inside Jenkins. # http://jenkins.ceph.com/job/ceph-setup/ +set -x +set -e + # Jenkins will set $RELEASE as a parameter in the job configuration. if $RELEASE ; then # This is a formal release. Sign it with the release key. -- 2.47.3