-
Task
-
Resolution: Won't Do
-
L3 - Default
-
None
-
None
Context:
We have a try block in our jenkins pipeline IT stages to cover the case of a dying k8s pod, however this retry fails in that case because the git checkout is not reperformed (see screenshot).
AT:
- retries on a lost IT pod don't fail due to missing git checkout
Potential solution:
- deactive the default scm checkout option in the pipeline skipDefaultCheckout https://jenkins.io/doc/book/pipeline/syntax/#options
- add an explicit git checkout to each stage where necessary and inside the retry block so the checkout is reperformed, see nightly pipelines on how to use the `git` function of the jenkins pipeline