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

Cannot remove job parameters via config.xml POST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • 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.

            Unassigned Unassigned
            campos_ddc Diogo Campos
            Votes:
            8 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: