| So the "Pipeline Plugin" link in your post times out. In jenkins by default, when I select "New Item" -> "Pipeline", then using the syntax above does not work. Not sure if the pipeline syntax changes for the default pipeline project type depending on what you have installed, however I found that the syntax above does not work for me either, and in my perspective, it is not setup properly. Here is the proper layout that allows my pipeline to function properly for build back to normal: pipeline { environment { def previousResult = '${currentBuild.previousBuild?.result}' } // pipeline stages/steps post { success { script { // wrap the if statement in a script tag. |