Declarative Pipeline with agent any already runs 'Declarative: Checkout SCM'
automatically before user stages the explicit stage('Checkout') was cloning
the repo a second time for no reason. Remove it entirely; capture GIT_COMMIT_SHA
and GIT_PREV_SHA at the top of stage('Detect') using the already-present workspace.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 KiB
25 KiB