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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • blueocean-plugin
    • None
    • 1.0-beta-1

      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'
              }
          }
      }
      

            vivek Vivek Pandey
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: