Open PlagueHO opened 4 years ago
As of more recent versions of Jenkins, an API token is required to log in to the REST APIs, rather than username/password.
Create a new function to generate an API Token: http://localhost/me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken
Post: newTokenName=NameOfToken
Pass user credential and crumb
Should this also include a matching method to revoke a token?
As of more recent versions of Jenkins, an API token is required to log in to the REST APIs, rather than username/password.
Create a new function to generate an API Token: http://localhost/me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken
Post: newTokenName=NameOfToken
Pass user credential and crumb