我正在尝试将 Git 配置为 TeamCity 7.1.2 的 VCS。
运行构建时,我看到以下错误:
jetbrains.buildServer.vcs.VcsException:“git fetch”命令失败。异常:无法运行程序“c:\TeamCity\jre\bin\java”(在目录“C:\ProgramData\JetBrains\TeamCity\system\caches\git\git-5BB95C96.git”中):CreateProcess 错误=193,% 1 不是有效的 Win32 应用程序
如果我在构建服务器上的终端中 cd 到该路径并尝试运行引用的 java 二进制文件,它会正常运行。
完整的堆栈跟踪是:
jetbrains.buildServer.vcs.VcsException: 'git fetch' command failed.
exception: Cannot run program "c:\TeamCity\jre\bin\java" (in directory "C:\ProgramData\JetBrains\TeamCity\system\caches\git\git-5BB95C96.git"): CreateProcess error=193, %1 is not a valid Win32 application
at jetbrains.buildServer.buildTriggers.vcs.git.CommandLineUtil.getCommandLineError(CommandLineUtil.java:44)
at jetbrains.buildServer.buildTriggers.vcs.git.FetchCommandImpl.fetchInSeparateProcess(FetchCommandImpl.java:132)
at jetbrains.buildServer.buildTriggers.vcs.git.FetchCommandImpl.fetch(FetchCommandImpl.java:70)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.fetch(GitVcsSupport.java:391)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.fetch(GitVcsSupport.java:407)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.fetchBranchData(GitVcsSupport.java:377)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.ensureRevCommitLoaded(GitVcsSupport.java:246)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.buildPatch(GitVcsSupport.java:216)
at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil.buildPatch(BuildPatchUtil.java:1)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildCleanPatchToStream(PatchComposer.java:115)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.access$100(PatchComposer.java:104)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer$2.constructPatch(PatchComposer.java:1)
at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:12)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.requestCachedPatch(PatchCacheImpl.java:5)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.getOrMakeCacheableCleanPatch(PatchComposer.java:153)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:141)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:46)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:0)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:59)
at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:4)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
任何人都可以建议尝试一下吗?