python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00074
[Bug 1177831] Re: build_job with parameters fails since POST is not used.
Attached is what Jenkins returns when calling build_job. Here is the
important part:
You must use POST method to trigger builds. (From scripts you may
instead pass a per-project authentication token, or authenticate with
your API token.) If you see this page, it may be because a plugin
offered a GET link; file a bug report for that plugin.
is there any other way to trigger a build with this library in the mean time?
** Attachment added: "JenkinsAPIError.html"
https://bugs.launchpad.net/python-jenkins/+bug/1177831/+attachment/3716420/+files/JenkinsAPIError.html
--
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1177831
Title:
build_job with parameters fails since POST is not used.
Status in Python API for Jenkins:
Confirmed
Bug description:
Jenkins requires a POST when a job URL has parameters. Since python-
jenkins does not pass urllib2.urlopen a data value a GET is used
instead. This results in a failure and the Jenkins error page is
returned.
To reproduce this bug:
- Create a job with parameters.
- In ipython:
import jenkins
j = jenkins.Jenkins(url)
j.build_job(job_name, {param : value})
This will fail.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1177831/+subscriptions
References