Skip to content

Instantly share code, notes, and snippets.

@metametadata
Created February 6, 2018 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metametadata/1dd87a834a3fb3dfde27d94e67cd3879 to your computer and use it in GitHub Desktop.
Save metametadata/1dd87a834a3fb3dfde27d94e67cd3879 to your computer and use it in GitHub Desktop.
Jenkins API token
// API token can also be found in GUI at http://<jenkins>/configure/me.
def user = "admin"
def token = User.get(user).getProperty(ApiTokenProperty.class).getApiToken()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment