Created
February 6, 2018 03:34
-
-
Save metametadata/1dd87a834a3fb3dfde27d94e67cd3879 to your computer and use it in GitHub Desktop.
Jenkins API token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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