Hello, I'm getting this strange issue where the checkout command doesn't seem to checkout the latest commit.
This is my error: [Pipeline] checkout 14:52:51 The recommended git tool is: NONE 14:52:51 using credential repo-access 14:52:51 > git rev-parse --is-inside-work-tree # timeout=10 14:52:51 Fetching changes from the remote Git repository 14:52:51 > git config remote.origin.url [email protected]:redacted.git # timeout=10 14:52:52 Fetching upstream changes from [email protected]:redacted.git 14:52:52 > git --version # timeout=10 14:52:52 > git --version # 'git version 2.23.3' 14:52:52 using GIT_SSH to set credentials Git access 14:52:52 > git fetch --tags --force --progress -- [email protected]:redacted.git +refs/heads/*:refs/remotes/origin/* # timeout=10 14:52:54 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 14:52:54 > git rev-parse origin/master^{commit} # timeout=10 This is my checkout command: scmVars = checkout scm: [ $class: 'GitSCM', userRemoteConfigs: [[credentialsId: "${GIT_CREDENTIALS}", url: "${GIT_URL}"]] ] This repository has no "master" branch, it only has a "development" branch. >From the docs (https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/) it says that leaving the branch empty means it will scan all branches, so I was expecting it to checkout the "development" branch. But it seems to be attempting to grab the "master" branch. Why is that? Thanks in advance! Regards, Joel -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3a1c8643-b888-4576-a7fa-45b6bda50d36n%40googlegroups.com.
