diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-08-23 16:00:38 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-09-06 06:36:08 +0000 |
commit | 3da63725575cf3d9763f1502e88b032dd355a69d (patch) | |
tree | f02296b06f1fc068aad328e9b882e0ba2ba5146a /odp-api-check.yaml | |
parent | 69f95f9ffffc63fb3ee2528514ca12d91c086797 (diff) |
odp-api-check: add a second shell to exit job
Change-Id: I04ec8f3564079f0f0931bcce8146a6e5b61fc2da
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'odp-api-check.yaml')
-rw-r--r-- | odp-api-check.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/odp-api-check.yaml b/odp-api-check.yaml index 71b3b8afd8..a608e7b2f9 100644 --- a/odp-api-check.yaml +++ b/odp-api-check.yaml @@ -142,12 +142,27 @@ else exit 0 fi + cat << EOF > remote_directory_parameters + retcode=${retcode} + EOF - trigger-builds: - project: - odp-publish-icon predefined-parameters: | UPSTREAM_BUILD_URL=${BUILD_URL} UPSTREAM_GIT_BRANCH=${GIT_BRANCH} + - inject: + properties-file: remote_directory_parameters + - shell: | + #!/bin/bash + + set -ex + + if [ ${retcode} -ne 0 ]; then + exit 1 + else + exit 0 + fi publishers: - warnings: console-log-parsers: |