-
Bug
-
Resolution: Fixed
-
Minor
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
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. |
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 |
Assignee | New: Daniel Beck [ danielbeck ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Labels | Original: jenkins | New: jenkins lts-candidate |
Labels | Original: jenkins lts-candidate | New: 1.565.1-fixed jenkins |
Workflow | Original: JNJira [ 147078 ] | New: JNJira + In-Review [ 192225 ] |