-
Bug
-
Resolution: Duplicate
-
Major
-
None
If I have a job that is parameterized, and I try to remove parameters from its config.xml via HTTP post to JOB_URL/config.xml, nothing happens.
The correct config.xml is uploaded (this can be seen in the JOB_URL/config.xml page), but there seems to be no effect on the interface.
Manually reloading configuration from disk in Jenkins Management after uploading the new XML will put the correct options there.
I've only tested this using python_jenkins, but it really only does an HTTP post:
def reconfig_job(self, name, config_xml): self.get_job_info(name) headers = {'Content-Type': 'text/xml'} reconfig_url = self.server + CONFIG_JOB % locals() self.jenkins_open(urllib2.Request(reconfig_url, config_xml, headers))
XML files attached.
Reproduced in 1.528 and 1.565.
- duplicates
-
JENKINS-21017 CLI update-job and POSTing config.xml cannot remove properties
- Resolved