Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2581

Reperform git checkout in Jenkinsfile stages on retry

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sebastian.bathke Sebastian Bathke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: