]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
jjb: actually fail if a command doesn't return 0 1337/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jul 2019 08:47:53 +0000 (10:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jul 2019 15:13:30 +0000 (17:13 +0200)
commit6de83c05edb05a98fc10272b633e750dacd9e19b
tree9d56fb87d9c2af0f905e3791c8b444c0489c7987
parentf815f366c475fad0d4f7c567b12f4cc6c062ca53
jjb: actually fail if a command doesn't return 0

this sets `-euxo pipefail` to avoid this situation :

```
++ sort
++ grep -v jenkins-job-builder
++ jq -r '.jobs[].name'
/tmp/jenkins7521600802673204021.sh: line 1043: jq: command not found
++ curl -s https://2.jenkins.ceph.com/api/json
[PostBuildScript] - Executing post build scripts.
[jenkins-job-builder] $ /bin/sh -xe /tmp/jenkins7309655147676749318.sh
+ rm /home/jenkins-build/.jenkins_jobs.2.jenkins.ceph.com.ini
Finished: SUCCESS
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
jenkins-job-builder/build/build