本例中的${GIT_BRANCH}包含origin/1.4值。
如何获得用于克隆的本地Git分支的名称(即没有origin/前缀的1.4?我用分支名称1.4尝试了Checkout to specific localbranch附加行为,但是什么都没有改变。我在GitHub上看到过related ,但它被拒绝了(因为它只修复了origin remote的一个案例)。
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref -> [Help 1] ... 30 more
Caused by: org.apache.maven.scm.ScmException: Detecting the current branchfailed: fat
Instead a local version of cache will be extracted.repository in D:/Java Testing/GitLab-Runner/builds/EgKZ847y/0/sandeshmms/LearningSelenium/.git/git-lfs/2.12.1 (GitHub; windows 386; go 1