Skip to content

Commit

Permalink
build-triggers: stop job in case of any failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dahorak committed Feb 5, 2018
1 parent d236188 commit 8b20bbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jobs/build-triggers/tendrl-build-triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
"git clone https://github.com/Tendrl/{package_name} ${{rwd}}/{package_name}"
# checkout the desired branch
ssh root@${{build_server}} \
"cd ${{rwd}}/{package_name}; \
"set -xe; \
cd ${{rwd}}/{package_name}; \
branch=\$(git ls-remote --heads origin '${{BRANCH}}' | \
sed 's/[a-z0-9]*\trefs\/heads\///' | \
grep -v '/v' | sort | tail -1); \
Expand All @@ -93,7 +94,8 @@
# build srpm package
ssh root@${{build_server}} \
"cd ${{rwd}}/{package_name}; \
"set -xe; \
cd ${{rwd}}/{package_name}; \
{build_commands}; \
ls -l;"
Expand Down

0 comments on commit 8b20bbd

Please sign in to comment.