Access Stage results in Workflow/ Pipeline plugin
问题 I have a pipeline with different stages. I want the current job to check how many stages have passed in the previous build and log it in the console? Consider this is my current pipeline node(){ stage "1" do something stage "2" do something else } I want a groovy script to give my something like this println currentBuild.previousBuild.getStage("1").result The purpose of my code is track successes & failures in different stages across my builds. Are there any alternatives to this approach? 回答1