Code Review
/
ci-management.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6a038e6
)
CSIT-919: PAL-cpta
61/11361/1
author
Tibor Frank
<tifrank@cisco.com>
Mon, 26 Mar 2018 09:09:37 +0000
(11:09 +0200)
committer
Tibor Frank
<tifrank@cisco.com>
Mon, 26 Mar 2018 09:09:37 +0000
(11:09 +0200)
- The job fails if the evaluation of results fails.
Change-Id: I8e601b2e2720f9545aa59063d1cc72df6910065a
Signed-off-by: Tibor Frank <tifrank@cisco.com>
jjb/csit/include-raw-csit-cpta.sh
patch
|
blob
|
history
diff --git
a/jjb/csit/include-raw-csit-cpta.sh
b/jjb/csit/include-raw-csit-cpta.sh
index
db37feb
..
7775857
100644
(file)
--- a/
jjb/csit/include-raw-csit-cpta.sh
+++ b/
jjb/csit/include-raw-csit-cpta.sh
@@
-12,8
+12,7
@@
set -xe -o pipefail
cd ${DOC_DIR}
chmod +x ./run_cpta.sh
-./run_cpta.sh
-retval=$?
+STATUS=$(./run_cpta.sh | tail -1)
cd ${WORKSPACE}
@@
-53,8
+52,8
@@
${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}"
cd -
-
-if [ ${retval} -ne "0" ]; then
- echo "FAIL"
+if [ ${STATUS} == "PASS" ]; then
+ exit 0
+else
+ exit 1
fi
-exit ${retval}
\ No newline at end of file