mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2026-05-05 23:42:45 +00:00
Fetch the tags and echo to avoid failure
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -21,10 +21,11 @@ pipeline {
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'git fetch --all --tags'
|
||||
sh '. .env.sh && bundle exec rake clean'
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user