Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created June 16, 2015 04:05
Show Gist options
  • Save gregjhogan/34e2a8fe06e164a21b03 to your computer and use it in GitHub Desktop.
Save gregjhogan/34e2a8fe06e164a21b03 to your computer and use it in GitHub Desktop.
Jenkins Groovy Examples
def job = Jenkins.getInstance().getItem("build name")
def build = job.getBuildByNumber(12345)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment