-
Bug
-
Resolution: Fixed
-
Major
The custom workspace of a Jenkins job cannot be removed by the CLI using update-job.
Steps to reproduce:
1. Have a job with a custom workspace.
2. Remove the custom workspace using the Jenkins java CLI (having a second job without the custom workspace and doing <cli> -get-job <second job> | <cli> update-job <job> is how we encountered this problem).
3. Note that the config.xml of the job no longer references a custom workspace.
4. Open the job in the Web GUI. Note that the custom workspace is there, and a save of the job without doing any updates will put the custom workspace configuration back into the config.xml file for the job.
Bottom line - to remove the custom workspace, one either needs to do it via the web GUI, or do a restart of the Jenkins instance after doing it via the CLI.
Side note: the " and some other characters are save differently when updating a job via the CLI vs. the Web GUI.
Example: double quotes " will be changed to '"' in config.xml through CLI method.
- blocks
-
JENKINS-47528 MissingPropertyException from SandboxInterceptor during job-dsl-plugin job update
-
- Open
-
- is blocking
-
JENKINS-30548 Post build step not removed from generated Maven job
-
- Closed
-
-
JENKINS-39917 project update with dsl-script does not update "rootPom" settings for maven job
-
- Closed
-
-
JENKINS-26825 JobDSL plugin doesn't reset customWorkspace setting
-
- Closed
-
- is duplicated by
-
JENKINS-23291 Cannot remove job parameters via config.xml POST
-
- Resolved
-
-
JENKINS-24657 Unable to remove logRotator entries when updating a job by POSTing config.xml
-
- Resolved
-
- links to
[JENKINS-21017] CLI update-job and POSTing config.xml cannot remove properties
Component/s | New: cli [ 15624 ] | |
Component/s | Original: additional-identities [ 17451 ] | |
Labels | New: gui jenkins |
Component/s | New: core [ 15593 ] | |
Component/s | Original: cli [ 15624 ] | |
Labels | Original: gui jenkins | New: cli custom-workspace |
Link |
New:
This issue is duplicated by |
Affects Version/s | Original: current [ 10162 ] | |
Environment |
Original:
Red Hat Enterprise Linux Server release 6.4 (Santiago) Virtual Machine |
|
Summary | Original: Jenkins CLI update-job misses custom workspace deletion | New: Jenkins CLI update-job and POSTing config.xml cannot remove properties |
Link |
New:
This issue is duplicated by |
additional-identities plugins has nothing to do with the ticket.
It's a CLI issue. And a bit of a GUI issue since it's not being updated properly.