I am trying to use the jenkins rest api. In the instructions it says I need to have the api key. I have looked all over the configuration pages to find it. How do i get the
The non UI way to do this post Jenkins 2.129 is:
curl 'https:///me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken' \
--data 'newTokenName=foo' \
--user username:Password
which returns:
{
"status": "ok",
"data": {
"tokenName": "foo",
"tokenUuid": "",
"tokenValue": ""
}
}
Pre Jenkins 2.129
curl http://:@/me/configure