Skip to content

Instantly share code, notes, and snippets.

@conclusionlogic
Created April 4, 2020 00:01
Show Gist options
  • Save conclusionlogic/5af484d461b5a6a6adc8a79be2e256d3 to your computer and use it in GitHub Desktop.
Save conclusionlogic/5af484d461b5a6a6adc8a79be2e256d3 to your computer and use it in GitHub Desktop.
[jenkins_snippets] archive of snippets for Jenkins #groovy #jenkins #pipelinejob
#!/usr/bin/env groovy
script {
currentBuild.displayName = "#${env.BUILD_NUMBER} ${params.dockerTag}"
currentBuild.rawBuild.project.description = "${params.gitRef.replaceAll('.*/', '')}: ${params.dockerTag}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment