Skip to content

Commit

Permalink
Protect node cleanup against dead nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Aug 21, 2023
1 parent 952302b commit ecb453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sqre/infra/jenkins_node_cleanup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void processNodes() {
nodeStatus['failedNodes'] << t
}
} finally {
if (!manualOffline) {
if (node.toComputer() != null && !manualOffline) {
node.toComputer().setTemporarilyOffline(false, null)
}

Expand Down

0 comments on commit ecb453b

Please sign in to comment.