mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
Fetch the tags and echo to avoid failure
This commit is contained in:
parent
eaffc953f0
commit
444a29c95e
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user