Skip to content

Commit

Permalink
Include failed steps that Jenkins thinks are still in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Jul 20, 2020
1 parent 2d64927 commit 77c6d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/jenkinsApi.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def getSteps() {

def getFailedSteps() {
def steps = getSteps()
def failedSteps = steps?.findAll { it.iconColor == "red" && it._class == "org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode" }
def failedSteps = steps?.findAll { (it.iconColor == "red" || it.iconColor == "red_anime") && it._class == "org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode" }
failedSteps.each { step ->
step.logs = "${env.BUILD_URL}execution/node/${step.id}/log".toString()
}
Expand Down

0 comments on commit 77c6d80

Please sign in to comment.