Created
May 13, 2019 00:58
-
-
Save mroger/ccecc98e8c9dcae04fc7b2c6541a5799 to your computer and use it in GitHub Desktop.
Jenkinsfile snippet #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env.headTag = sh(returnStdout: true, script: 'git describe --all --exact-match `git rev-parse HEAD`').trim() | |
echo env.headTag | |
if (headTag =~ /^tags\/v\d+.\d+.\d+/) { | |
currentBuild.result = 'ABORTED' | |
error 'Ignoring build because there are no new changes' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment