Manually set Jenkins API Token for a user

92 views
Skip to first unread message

kkm...@colorado.edu

unread,
Jan 4, 2016, 6:47:03 PM1/4/16
to Jenkins Developers
I am using the API Token for a user name in Jenkins to allow a git post receive hook to push to jenkins.  We upgraded Jenkins and the API Token got updated.  How do I manually reset the API Token for that user?  Clicking on button Change API Token randomly assigns a different token.

Oleg Nenashev

unread,
Jan 5, 2016, 5:19:25 AM1/5/16
to Jenkins Developers
We upgraded Jenkins and the API Token got updated
If it happens, it's a bug. Please create a JIRA issue with details


How do I manually reset the API Token for that user?
You are not supposed to do it since API token is a randomly generated by design.
It's possible to manually set the new value, encrypt it and put to the disk using System Groovy Scripts, but I would not advertise it for the production use

вторник, 5 января 2016 г., 2:47:03 UTC+3 пользователь kkm...@colorado.edu написал:
Reply all
Reply to author
Forward
0 new messages