From: Ken Dreyer Date: Fri, 21 Feb 2014 18:05:02 +0000 (-0700) Subject: jenkins: show steps and fail fast during job execution X-Git-Tag: v1.4.0~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F165%2Fhead;p=ceph-deploy.git jenkins: show steps 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/scripts/jenkins-build b/scripts/jenkins-build index 9d7a681..cf2b06f 100755 --- a/scripts/jenkins-build +++ b/scripts/jenkins-build @@ -4,6 +4,7 @@ # http://jenkins.ceph.com/job/ceph-deploy/ set -x +set -e # Jenkins will set $RELEASE as a parameter in the job configuration. if $RELEASE ; then diff --git a/scripts/jenkins-pull-requests-build b/scripts/jenkins-pull-requests-build index 6a4da91..24f2867 100644 --- a/scripts/jenkins-pull-requests-build +++ b/scripts/jenkins-pull-requests-build @@ -1,5 +1,8 @@ #!/bin/sh +set -x +set -e + # This is the script that runs inside Jenkins for each pull request. # http://jenkins.ceph.com/job/ceph-deploy-pull-requests/