Skip to content

Commit

Permalink
Abort Jenkins build if there it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
francoilol committed May 16, 2019
1 parent 0829a25 commit 3226bc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Expand Up @@ -15,6 +15,7 @@ pipeline {
VERSION=$( jq --raw-output '.version' package.json )
SHORT_HASH=$( git rev-parse --short HEAD )
echo "$VERSION-$SHORT_HASH" >.lisk_version
OUTPUT_FILE="lisk-$( cat .lisk_version )-Linux-x86_64.tar.gz"
if s3cmd --quiet info "s3://lisk-releases/lisk-core/$OUTPUT_FILE" 2>/dev/null; then
echo "Build already exists."
exit 1
Expand Down

0 comments on commit 3226bc8

Please sign in to comment.