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

Declarative pipeline post stage - Always step set wrong currentResult status

    XMLWordPrintable

Details

    • pipeline-model-definition 1.3.7

    Description

      Look like after the update of this plug-in, the always step doesn't have the correct currentResult status anymore:

      post {        
      always {             
       sendSlack(null, null,currentBuild.currentResult)        
      }        
      success {            
       echo 'This will run only if successful' cleanup()        
      }        
      failure {            
       echo 'Notify developer when build failure'  printDebug()         
      }        
      unstable {            
       echo 'This will run only if the run was marked as unstable' cleanup()        
      }        
      changed {            
       echo 'This will run only if the state of the Pipeline has changed'            
       echo 'For example, the Pipeline was previously failing but is now successful'      }
      }

       

       

      output: 

       

      Attachments

        Issue Links

          Activity

            People

              dnusbaum Devin Nusbaum
              hungvotrung Hung Vo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: