Fetch the tags and echo to avoid failure

This commit is contained in:
Zach Leslie 2018-02-10 11:29:26 -08:00
parent eaffc953f0
commit 444a29c95e

3
Jenkinsfile vendored
View File

@ -21,10 +21,11 @@ pipeline {
} }
steps { steps {
sh 'git fetch --all --tags'
sh '. .env.sh && bundle exec rake clean' sh '. .env.sh && bundle exec rake clean'
sh '. .env.sh && bundle exec rake build' sh '. .env.sh && bundle exec rake build'
sh '[ "$(git rev-list -n 1 $(git tag | tail -n 1 ))" == "$(git rev-list -n 1 HEAD)" ] && bundle exec rake publish pkg/*.tar.gz' sh '[ "$(git rev-list -n 1 $(git tag | tail -n 1 ))" == "$(git rev-list -n 1 HEAD)" ] && bundle exec rake publish pkg/*.tar.gz || echo HEAD is not a tag'
} }
} }
} }