-
Improvement
-
Resolution: Unresolved
-
Minor
I have a build that in some cases is avoided - logs are not produced.
I would like to be able to compensate reports generation, so no matter if new results are collected, the graph and links are displayed. Currenly only a build that records issues is showing both of those.
I tried to compensate it by generating report with empty issues collection but then the graph drops to 0
Example - every second build generates report:
pipeline { agent any stages { stage ('recordIssues') { when { expression { env.BUILD_NUMBER.toBigInteger().mod( 2 ) == 0 } } steps { recordIssues( tools: [ intel(pattern: "logs\\**\\*.*"), ] ) } } stage ('compensate') { when { expression { env.BUILD_NUMBER.toBigInteger().mod( 2 ) != 0 } } steps { echo "don't know how..." } } } }
- is duplicated by
-
JENKINS-56083 pmd warnings trend disappear if the last build doesn't record issues
- Resolved