Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Created May 11, 2017 13:25
Show Gist options
  • Save jacoelho/aeceba9b8c2d92efaa37dc4afd517728 to your computer and use it in GitHub Desktop.
Save jacoelho/aeceba9b8c2d92efaa37dc4afd517728 to your computer and use it in GitHub Desktop.
jenkinsfile skip ci
Boolean shouldSkipBuild() {
output = sh(script: "git log -1 --pretty=%B", returnStdout: true)
output ==~ /(?m).*skipci.*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment