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

Cannot remove job parameters via config.xml POST

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            Duplicates JENKINS-21017

            Show
            danielbeck Daniel Beck added a comment - Duplicates JENKINS-21017

              People

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

                Dates

                Created:
                Updated:
                Resolved: