0

I'm building a JaCoCo report in my Jenkins pipeline:

pipeline {
  stages {
    stage("One") {
      // build something...
      jacoco()
    }
  }
}

This works well with just the one report. But when I add a second one:

pipeline {
  stages {
    stage("One") {
      // build something...
      jacoco()
    }
    stage("Two") {
      // build something else...
      jacoco()
    }
  }
}

... then, Jenkins will give me two JaCoCo report buttons in the sidebar, but they will both link to one of the reports. Looks like the second one gets generated, but overwrites the first one.

Can I configure something so both reports are available?

Jorn
  • 20,612
  • 18
  • 79
  • 126

0 Answers0