Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27639

Jenkins POST Request with username/API Token javascript

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm using a chrome extension to display and visualize data from a jenkins server. I tried to start a certain build on that server using the jQuery function $.ajax(), but since the server is secured, I need to pass a username and password.

      After googling for a while I found this format for the HTTP request:

      http://username:APIToken@jenkinsurl

      I've tried both this, and a combination of username and the actual password, but nothing seemed to work.

      I have to note that I'm using the Jenkins Test Drive, and http://localhost:8080/ for my purposes, since I don't actually own a jenkins server. Maybe that has something to do with the above not working.

        Attachments

          Activity

          guyyst Guy Yst created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 161851 ] JNJira + In-Review [ 196884 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            guyyst Guy Yst
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: