python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00210
[Bug 1461928] [NEW] Add support for POST to build jobs
Public bug reported:
The current build_job() only supports simple key/value parameter pairs,
such as those used by string parameters, not the dict-based parameters
used by the parameterized build plugin (such as RunParameter, which
specifies a reference to a previous run of a job).
When trying to build a job with the parameterized build plugin,
build_job() fails. Hacking some debugging code (since there's no logging
at all...) around the urllib calls shows that Jenkins is responding with
a HTTP 405 (method not allowed) and a HTML body including this notice:
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
** Affects: python-jenkins
Importance: Undecided
Status: New
--
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/1461928
Title:
Add support for POST to build jobs
Status in Python API for Jenkins:
New
Bug description:
The current build_job() only supports simple key/value parameter
pairs, such as those used by string parameters, not the dict-based
parameters used by the parameterized build plugin (such as
RunParameter, which specifies a reference to a previous run of a job).
When trying to build a job with the parameterized build plugin,
build_job() fails. Hacking some debugging code (since there's no
logging at all...) around the urllib calls shows that Jenkins is
responding with a HTTP 405 (method not allowed) and a HTML body
including this notice:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1461928/+subscriptions
Follow ups
References