Skip to content

Instantly share code, notes, and snippets.

@BenjaminHerbert
Last active March 14, 2016 16:02
Show Gist options
  • Save BenjaminHerbert/432351767eb373e57487 to your computer and use it in GitHub Desktop.
Save BenjaminHerbert/432351767eb373e57487 to your computer and use it in GitHub Desktop.
Jenkins Expression fuu AND NOT bar
job.setAssignedLabel(
// fuu && !bar
new hudson.model.labels.LabelExpression.And(
new hudson.model.labels.LabelAtom("fuu"),
new hudson.model.labels.LabelExpression.Not(new hudson.model.labels.LabelAtom("bar"))
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment