Hey Dallas, Cannot you just use the changed condition https://jenkins.io/doc/book/pipeline/syntax/#post? Then you can use the http://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html#resultIsBetterOrEqualTo-java.lang.String-
See the below snippet: ... post { changed { script { // http://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html#resultIsBetterOrEqualTo-java.lang.String- if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) { echo "Previous build failed ${currentBuild?.getPreviousBuild()?.number} and now it has been fixed" } } } } ... Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f122af7-7a2e-4ab1-8cea-d6bbcc2ae3ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.