Skip to content

Instantly share code, notes, and snippets.

@adrianriobo
Created May 5, 2021 12:58
Show Gist options
  • Save adrianriobo/d2fcabf35966dfc95d160dd84b1f022e to your computer and use it in GitHub Desktop.
Save adrianriobo/d2fcabf35966dfc95d160dd84b1f022e to your computer and use it in GitHub Desktop.
jenkins automation
# 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