Open jira-importer opened 3 years ago
config.xml snippet: note the location of publishWhenFailed
CIFS: Eco-Jenkins false ${JCI_DEVICE_CLASS_PLUS}\${UJCI_TAG}\${BUILD_TAG} logcat-*.log, crash.log logcat.brief* false false true false false [, ]+ ${JCI_DEVICE_CLASS_PLUS}\${UJCI_TAG}\${BUILD_TAG}\state jci/state/*.* **/.gitignore false true false false false [, ]+ false false 2 15000 false false true true
Publish Over CIFS job config mishandles publishWhenFailed in job's config.xml
If you open the job config page, set the publishWhenFailed attribute to true, and save the job config, the attribute value true is written in the job's config.xml file, as expected.
However, if you open the job config page again and look at the publishWhenFailed attribute, the value show up as false. Then if you save the job config then, the attribute value in the job config.xml file is false.
As a result, you are going to end up with a publishWhenFailed value of false, unless you remember to reset it to true every time you edit the job config for any reason.
Examining the jobs config.xml file, I notice the publishWhenFailed attribute does not look like it is in the right place.
More info follows as comments and/or attachments.
Originally reported by hushp1pt, imported from: Publish Over CIFS job config mishandles publishWhenFailed in job's config.xml