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

Using curl it returns 404 (not found)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      The plugin works via jenkins cli without problems. The following call updates the "externalJob"  Jenkins job as expected:

      $ java -jar jenkins-cli.jar -s https://jenkinsServer:8443/ -auth admin:passwordAdmin set-external-build-result --display nombreBuild --dump-build-number --duration 10 --job externalJob --log logdesalida --result 0

      Using curl, however, following the example from the plugin documentation it returns a 404 (not found) http error code

      $ curl -u "admin:passwordAdmin" -X POST -d '<run><log encoding="hexBinary">4142430A</log><result>0</result><duration>2000</duration></run>' "https://jenkinsServer:8443/jenkins/job/externalJob/postBuildResult"

       

            kohsuke Kohsuke Kawaguchi
            pedritter Pedro Gutierrez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: