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

HTTP ERROR 404 Problem accessing /jenkins/job/myproject/build. Reason: Not Found

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core
    • Jenkins ver. 2.32.2
      centos 6.5

      The problem I met was: I tried to trigger jenkins project by api, but it failed:

      Api: curl -X POST 'http://localhost:8080/jenkins/job/bis-dx/build' --user '**:***' -H "$CRUMB"

      Failed info: 

      <p>Problem accessing /jenkins/job/bis-dx/build. Reason:
      <pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

       

      What I want to consult are:

      1. The api is correct or not? 
      2. If api is correct, whether the issue is the bug of the jenkins version I am using? If so, which version is better, how about 2.60.1? 

      Thanks

          [JENKINS-45568] HTTP ERROR 404 Problem accessing /jenkins/job/myproject/build. Reason: Not Found

          Daniel Beck added a comment -

          Probably the wrong URL for a build that expects parameters. How to trigger builds is documented on /jenkins/job/bis-dx/api/ section "Perform a build"; guides on the web (notably also the Jenkins wiki) are often not great.

          So far this looks more like a support request that a bug report; those are better posted to #jenkins on Freenode, or to the jenkinsci-users mailing list.

          Daniel Beck added a comment - Probably the wrong URL for a build that expects parameters. How to trigger builds is documented on /jenkins/job/bis-dx/api/ section "Perform a build"; guides on the web (notably also the Jenkins wiki) are often not great. So far this looks more like a support request that a bug report; those are better posted to #jenkins on Freenode, or to the jenkinsci-users mailing list.

          Lee Melissa added a comment -

          Thanks a lot for the clue you gave me, I've found the correct URL.

          Lee Melissa added a comment - Thanks a lot for the clue you gave me, I've found the correct URL.

            Unassigned Unassigned
            melissa Lee Melissa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: