TeamCity错误:%1不是有效的Win32应用程序

时间:2013-05-21 13:55:41

标签: continuous-integration teamcity

我试图将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 error = 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)

有人可以建议尝试一下吗?

0 个答案:

没有答案