Git Jenkins生成失败,错误为:无法取消旧文件路径的链接';:无效参数

Git Jenkins生成失败,错误为:无法取消旧文件路径的链接';:无效参数,git,github,jenkins,Git,Github,Jenkins,当我尝试进行构建时,出现了以下错误 Started by user admin Building in workspace D:\selenium\project > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url https://git@github.com

当我尝试进行构建时,出现了以下错误

Started by user admin
Building in workspace D:\selenium\project
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url https://git@github.com/username/repository_name.git # timeout=10
Fetching upstream changes from https://git@github.com/username/repository_name.git
 > git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
Setting http proxy: proxy_value
 > git.exe fetch --tags --progress https://git@github.com/username/repository_name.git +refs/heads/*:refs/remotes/repository_name/*
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision e238e0de45ebc233b65b90493d3d2a802cef20q2 (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f e238e0de45ebc233b65b90493d3d2a802cef20q2
FATAL: Could not checkout e238e0de45ebc233b65b90493d3d2a802cef20q2
hudson.plugins.git.GitException: Command "git.exe checkout -f e238e0de45ebc233b65b90493d3d2a802cef20q2" returned status code 1:
stdout: 
stderr: error: unable to unlink old 'src/Resources/chromedriver.exe': Invalid argument
HEAD is now at e238e0d... Initial Code

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$800(CliGitAPIImpl.java:71)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2269)
Caused: hudson.plugins.git.GitException: Could not checkout e238e0de45ebc233b65b90493d3d2a802cef20q2
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2293)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1173)
    at hudson.scm.SCM.checkout(SCM.java:495)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
    at hudson.model.Run.execute(Run.java:1737)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:419)
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
Finished: FAILURE

有人能帮忙吗?我配置了Git存储库url和凭据。有什么我遗漏的吗?

试着下载一个文件LockHunter,检查哪个进程正在使用这个文件,这会阻止git更新它


通常,这是由于用户中止了以前的生成,并且进程没有使用现有文件停止。

尝试下载文件LockHunter,检查哪个进程正在使用此文件,从而阻止git更新它

通常,这是由于用户中止了以前的生成,并且该进程不会因现有生成而停止