Revision checked out by "checkout scm" can change if new commits happen during build

XMLWordPrintable

      If new commits go into a repo after a build has started we find later stages running against a different commit to the earlier stages.

      We've been using checkout scm + stash/unstash to work around this

      I've made a test repo to demonstrate the issue: https://github.com/leth/jenkins-pipeline-scm-test

        1. config.xml
          1 kB
          Marcus Cobden
        2. consoleText.txt
          7 kB
          Marcus Cobden

            Assignee:
            Unassigned
            Reporter:
            Marcus Cobden
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: