Skip to content

Instantly share code, notes, and snippets.

@alces
Created December 13, 2016 12:03
Show Gist options
  • Save alces/5e4974e33d3d3845b01dd2ce42121138 to your computer and use it in GitHub Desktop.
Save alces/5e4974e33d3d3845b01dd2ce42121138 to your computer and use it in GitHub Desktop.
Getting a name of the currently generated Jenkins job from inside DSL script
// from top-level of the job block:
delegate.name
// from a nested block (such as parameters, steps, etc.):
delegate.item.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment