Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emil-nasso/35889699a51ddc88ac4385782c1ed7e1 to your computer and use it in GitHub Desktop.
Save emil-nasso/35889699a51ddc88ac4385782c1ed7e1 to your computer and use it in GitHub Desktop.
def (jobName, branchName) = "${env.JOB_NAME}".tokenize('/')
if (jobName = "example") {
job = load "example/Jenkinsfile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment