From 5e2465e4977531cd82261432c334bd278c209ebe Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Fri, 21 Feb 2014 11:05:02 -0700 Subject: [PATCH] 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 --- scripts/jenkins-build | 1 + scripts/jenkins-pull-requests-build | 3 +++ 2 files changed, 4 insertions(+) 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/ -- 2.47.3