From: Ken Dreyer Date: Fri, 21 Feb 2014 18:13:17 +0000 (-0700) Subject: jenkins: show errors and fail fast during job execution X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7%2Fhead;p=ceph-build.git 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 --- 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.