Cannot remove job parameters via config.xml POST

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

        1. new_without_parameters.xml
          4 kB
          Diogo Campos
        2. old_with_parameters.xml
          5 kB
          Diogo Campos

            Assignee:
            Unassigned
            Reporter:
            Diogo Campos
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: