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

Declarative pipeline post stage - Always step set wrong currentResult status

    Details

    • Similar Issues:
    • Released As:
      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

            Hide
            dnusbaum Devin Nusbaum added a comment -

            I think this is a duplicate of JENKINS-56402, which was fixed in version 1.3.7 of Pipeline: Declarative Plugin. Can you update the plugin and see if that fixes the issue?

            Show
            dnusbaum Devin Nusbaum added a comment - I think this is a duplicate of  JENKINS-56402 , which was fixed in version 1.3.7 of Pipeline: Declarative Plugin. Can you update the plugin and see if that fixes the issue?

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: