Created
May 5, 2021 12:58
-
-
Save adrianriobo/d2fcabf35966dfc95d160dd84b1f022e to your computer and use it in GitHub Desktop.
jenkins automation
This file contains 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
# Create token | |
curl 'https://${JENKINS_URL}/me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken' \ | |
--data 'newTokenName=${TOKEN_NAME}' | |
--user ${USERNAME}:${PASSWORD} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment