This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Finally in a pipeline does not report critical errors, leading to mysterious failures.

      E.g: this following pipeline excerpt does not construct the dependency-check-report.html file for archiving, and no error is logged.  However, the build silently fails as a result.

        try {
          stage('Build and test') {
            sh 'sbt -no-colors rebuild doc swaggerJson manifest'
          }
        } finally {
          stage('Archive coverage report') {
            archiveArtifacts "target/scala-2.12/scoverage-report/**"
            publishHTML(target: [reportName: "Code coverage report", reportDir: "target/scala-2.12/scoverage-report", reportFiles: "index.html"])
          }

          stage('Archive vulnerability report') {
            archiveArtifacts "target/scala-2.12/dependency-check-report.html"
            publishHTML(target: [reportName: "Vulnerabilty report", reportDir: "target/scala-2.12", reportFiles: "dependency-check-report.html"])
          }
        }

       

            Assignee:
            Unassigned
            Reporter:
            John Mellor
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: