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

Log from parallel stages is not analyzed separately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • analysis-model
    • None

      When running multiple stages in parallel, the resulting log output is treated as one.

      Example Jenkinsfile:

      pipeline {
          agent any
      
          stages {
              stage("Parallel") {
                  parallel {
                      stage('revapi') {
                          steps {
                              sleep(time: 1, unit: "SECONDS")
                              println "[INFO] --- revapi:0.15.0:check (default-cli) @ module ---"
                              sleep(time: 3, unit: "SECONDS")
                              println "[INFO] Looks good"
                          }
                      }
                      stage('sonar') {
                          steps {
                              println "[INFO] --- sonar:3.11.0.3922:sonar (default-cli) @ module ---"
                              sleep(time: 2, unit: "SECONDS")
                              println "[ERROR] 13:40:02.300 Unable to run check"
                          }
                      }
                  }
              }
          }
      
          post {
              always {
                  recordIssues([
                      enabledForFailure: true,
                      qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]],
                      tools: [java()]
                  ])
              }
          }
      }
      

      This results in the following warning:

      The warning has incorrectly been assigned to revapi:check, even though it belongs to sonar:sonar. This would force us to use an incorrect filter on revapi:check to remove the warning.

            drulli Ulli Hafner
            lgf10 Lukas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: