Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57636

Show job link and charts even if latest build does not contain results

XMLWordPrintable

      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..."
                  }
              }
          }    
      }
      

            Unassigned Unassigned
            quas Jakub Pawlinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: