尝试从 SCM 拉取时获取 InvalidPathException: Illegal char <:> for Jenkins

Getting an InvalidPathException: Illegal char <:> for Jenkins when attempting to pull from SCM

在涉及从 Git 存储库中提取新文件的初始阶段在 jenkins 上构建项目时,提取失败并且构建无法继续。

这是构建过程中的控制台输出

Building in workspace C:\Program Files (x86)\Jenkins\workspace\xxxxxxx
FATAL: Illegal char <:> at index 5: https://xxxxxxx@bitbucket.org/xxxxxx.git
java.nio.file.InvalidPathException: Illegal char <:> at index 5: https://xxxxxx@bitbucket.org/xxxxxx.git
    at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
    at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
    at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
    at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
    at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
    at java.base/java.nio.file.Path.of(Path.java:147)
    at java.base/java.nio.file.Paths.get(Paths.java:69)
    at hudson.plugins.git.GitSCM.abortIfSourceIsLocal(GitSCM.java:1399)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1282)
    at hudson.scm.SCM.checkout(SCM.java:540)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
    at hudson.model.Run.execute(Run.java:1897)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
    at hudson.model.ResourceController.execute(ResourceController.java:101)
    at hudson.model.Executor.run(Executor.java:442)
Finished: FAILURE

是否还有其他人遇到过这种情况并且知道如何解决?

需要说明的是,Jenkins 昨天构建成功,今天早上对 Jenkins 应用了一些更新后,出现了故障。我回滚了 Jenkins 更新,但仍然有这个问题

如 Asturio 所述,Git 插件存在问题。他们已经发布了一个修补程序,在更新到最新版本后,我们就可以开始了:)

更新Jenkins的git插件到4.11.3版本,修复了这个bug。从 Jenkins Manager 执行 --> 管理插件 --> git

的更新