You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-8797] Add support for retrieving job configuration via Jenkins CLI #15631
The Jenkins CLI is missing support for retrieving the configuration of a job. The http://jenkins/job/name/config.xml URL only works when no authentication/authorization is required to access the file. The new command for the Jenkins CLI would complement the already existing create-job command.
The Jenkins CLI is missing support for retrieving the configuration of a job. The http://jenkins/job/name/config.xml URL only works when no authentication/authorization is required to access the file. The new command for the Jenkins CLI would complement the already existing create-job command.
I am also interested in this. In addition to getting the job config via CLI, we also need capability to set the job config via CLI. This is a legit use case for several of my customers and a CLI capability which other CI toolkits include.
Parameters to the edit-job would be the job name and/or updated xml file on the filesystem. Seems easy to implement.
-Anthony
I am also interested in this. In addition to getting the job config via CLI, we also need capability to set the job config via CLI. This is a legit use case for several of my customers and a CLI capability which other CI toolkits include.
Parameters to the edit-job would be the job name and/or updated xml file on the filesystem. Seems easy to implement.
Hm, curl -u USERNAME http://jenkins/job/name/config.xml works for me. curl wants me to enter the password then or I could provide it via -uUSERNAME:PASSWORD.
Hm, curl -u USERNAME http://jenkins/job/name/config.xml works for me. curl wants me to enter the password then or I could provide it via -uUSERNAME:PASSWORD.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log: [FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log: [FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log: [FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Activity
jenkins-infra-bot commentedon Mar 11, 2011
anthonyjeffery:
Raw content of original comment:
I am also interested in this. In addition to getting the job config via CLI, we also need capability to set the job config via CLI. This is a legit use case for several of my customers and a CLI capability which other CI toolkits include.
Parameters to the edit-job would be the job name and/or updated xml file on the filesystem. Seems easy to implement.
-Anthony
jenkins-infra-bot commentedon Apr 1, 2011
Raw content of original comment:
Hm, curl -u USERNAME http://jenkins/job/name/config.xml works for me. curl wants me to enter the password then or I could provide it via -uUSERNAME:PASSWORD.
jenkins-infra-bot commentedon Jun 22, 2011
kscheer:
Raw content of original comment:
Additionally, if you want to use wget, you can use
This also works for the node toggleOffline command.
jenkins-infra-bot commentedon Aug 10, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
Compare: 297aff0...6b2af91
jenkins-infra-bot commentedon Aug 10, 2011
Raw content of original comment:
Integrated in
jenkins_main_trunk #1038
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
Kohsuke Kawaguchi : 6b2af9157a45d26f549bd2279d0f57fe8484bef9
Files :
jenkins-infra-bot commentedon Sep 12, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.
jenkins-infra-bot commentedon Oct 20, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/GetJobXmlCommand.java
core/src/main/java/hudson/cli/UpdateJobXmlCommand.java
core/src/main/java/hudson/model/AbstractItem.java
http://jenkins-ci.org/commit/jenkins/6b2af9157a45d26f549bd2279d0f57fe8484bef9
Log:
[FIXED JENKINS-8797] added CLI commands to manipulate jobs by their XML
definitions.