Skip to content

Accessing the exit code of a template step in retryStrategy? #14158

Answered by jswxstw
kevinc3n asked this question in Q&A
Discussion options

You must be logged in to vote

When using the expression field within retryStrategy, only these variables are available.

However, lastRetry.exitCode in your case is always -1 because template oom-example is type of Steps does not have exit code, which there is a related issue: #13297 for it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinc3n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants