-
Bug
-
Resolution: Duplicate
-
Major
-
None
1. HTTP GET the config.xml of a job from Jenkins.
2. Remove all logRotator elements from the document.
3. HTTP POST the config.xml to Jenkins.
The POST succeeds, successive GETs of the config.xml will not have the elements, but the UI displays that it is configured with the settings.
- duplicates
-
JENKINS-21017 CLI update-job and POSTing config.xml cannot remove properties
-
- Resolved
-
After some investigation, it looks like a limitation of XStream that you can't set things to null by removing it from XML or by entering special XML to achieve it.
http://stackoverflow.com/questions/20668266/xstream-null-out-fields-not-mentioned-in-xml-during-in-place-unmarshal