Pipeline has failed but its only stage is successful - when using Kyoto

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

XMLWordPrintable

      EDIT (mic): this seems only in Kyoto's config for now (still worth investigating..) - not block scoped stages.

      This pipeline has failed but the stage is reported as successful

      Jenkinsfile example

      pipeline {
          agent docker:'java'
          stages {
              stage ('Build') {
                  sh 'mvn clean source:jar package'
              }
              stage ('Browser Tests') {
                  parallel (
                      'Firefox': {
                          sh "echo 'setting up selenium environment'"
                          sh 'sleep 5000'
                      },
                      'Safari': {
                          sh "echo 'setting up selenium environment'"
                          sh 'sleep 5000'
                      },
                      'Chrome': {
                          sh "echo 'setting up selenium environment'"
                          sh 'sleep 3000'
                      },
                      'Internet Explorer': {
                          sh "echo 'setting up selenium environment'"
                          sh 'sleep 2000'
                      }
                    )
              }
              stage ('Static Analysis') {
                  sh 'mvn findbugs:findbugs'
              }
              stage ('Package') {
                  sh 'mvn source:jar package -Dmaven.test.skip'
              }
          }
      
          postBuild {
              always {
                  junit '**/target/surefire-reports/TEST-*.xml'
                  archive '**/target/*.jar'
              }
          }
      }
      

            Assignee:
            Vivek Pandey
            Reporter:
            James Dumay
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: