javascript - Jenkins/Hudson API Access with API Key Not Working -


I am trying to build my own Jenkins, although the API is uncertain whether it is directly with the next URL It is possible to do

I originally created a local website in which I have something like:

  var jsonAPI = "http://jenkinsurl.com/build/api/json"  

However I need to get certified. I got my API token, but how do I put it together - this is like this:

  var jsonAPI = " Http://jenkinsurl.com/build/api/json?apitoken=xxxxxxx " 

thanks

API Token is basically like a password; you still have a username / pass on the HTTP authentication The need to provide Rd pair.

You can try (replace apitoken with the actual token):
http: // username: Apitoken@jenkinsurl.com/build/api / Json with
or curl:
curl -u usernames: apitoken http://jenkinsurl.com/build/api/json


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -