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

Posting config.xml to master node advertised to work

      The POST action of config.xml to /computer on 'master' node doesn't work.
      If I go to "/computer/(master)/api" page, it says that the config.xml can be fetched and updated but it doesn't work that way.

      I just took a look at the code and it looks like the "replaceBy(Node newNode)" function on "core/src/main/java/hudson/model/Computer.java" uses the "getNodes()" function defined in "core/src/main/java/jenkins/model/Jenkins.java" which returns only the slaves and NOT the master. Is it an expected behavior? Shouldn't we be able to POST config.xml to master node? It has a lot of options that can be customized and posting the config.xml will help greatly.

          [JENKINS-16264] Posting config.xml to master node advertised to work

          Kannan Manickam created issue -
          Kannan Manickam made changes -
          Description Original: The POST action of config.xml to /computer on 'master' node doesn't work.
          If I go to "/computer/(master)/api" page, it says that the config.xml can be fetched and updated but it doesn't work that way.

          I just took a look at the code and it looks like the "replaceBy(Node newNode)" function on "core/src/main/java/hudson/model/Computer.java"uses the "getNodes()" function defined in "core/src/main/java/jenkins/model/Jenkins.java" which returns only the slaves and NOT the master. Is it an expected behavior? Shouldn't we be able to POST config.xml to master node? It has a lot of options that can be customized and posting the config.xml will help greatly.
          New: The POST action of config.xml to /computer on 'master' node doesn't work.
          If I go to "/computer/(master)/api" page, it says that the config.xml can be fetched and updated but it doesn't work that way.

          I just took a look at the code and it looks like the "replaceBy(Node newNode)" function on "core/src/main/java/hudson/model/Computer.java" uses the "getNodes()" function defined in "core/src/main/java/jenkins/model/Jenkins.java" which returns only the slaves and NOT the master. Is it an expected behavior? Shouldn't we be able to POST config.xml to master node? It has a lot of options that can be customized and posting the config.xml will help greatly.
          Jesse Glick made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]
          Summary Original: Posting config.xml to master node doesn't work New: Posting config.xml to master node advertised to work
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Labels Original: jenkins New: jenkins lts-candidate
          Oliver Gondža made changes -
          Labels Original: jenkins lts-candidate New: 1.565.1-fixed jenkins
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147078 ] New: JNJira + In-Review [ 192225 ]

            danielbeck Daniel Beck
            arangamani Kannan Manickam
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: