jira-importer / jira-github-issues-cifs

0 stars 0 forks source link

[JENKINS-65294] Publish Over CIFS job config mishandles publishWhenFailed in job's config.xml #68

Open jira-importer opened 3 years ago

jira-importer commented 3 years ago

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
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
jira-importer commented 3 years ago

hushp1pt:

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
    
jira-importer commented 3 years ago

hushp1pt:

the job config page, screen 1

jira-importer commented 3 years ago

hushp1pt: