Visual Studio 2017 (sln) Runner - file is not recognized as an internal or external command

Build setup to run the a Visual Studio (sln) runner (VS 2017 is installed on agent).

We use VisualGDB to cross-compile tests on a linux VM. There is a specific vGDB confoguration that we set to allow this batch fle to execute properly (per vGDB Support) The setting looks like this VisualGDB: Run "cmd.exe /c ivcg.bat". It allows the .bat file to be executed as part of a "CD" (change directory) command.

Please see log

The file exists in the directory it is looking into. If I open and build this solution in VS2017 on the agent, the solution builds without errors.

tep 4/6: PATH (Command Line) (1s)
[15:37:53]Step 5/6: Execute Station.sln (Visual Studio (sln)) (5s)
[15:37:53][Step 5/6] Starting: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:X:\BuildAgent\work\f29a0005efa126f2 "/msbuildPath:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin\MSBuild.exe"
[15:37:53][Step 5/6] in directory: X:\BuildAgent\work\f29a0005efa126f2
[15:37:56][Step 5/6] Station\Source\Station.sln.teamcity: Build target: TeamCity_Generated_Build (1s)
[15:37:56][Station\Source\Station.sln.teamcity] TeamCity_Generated_Build (1s)
[15:37:56][TeamCity_Generated_Build] MSBuild (1s)
[15:37:56][MSBuild] Station\Source\Station.sln: Build target: Build (1s)
[15:37:56][Station\Source\Station.sln] ValidateSolutionConfiguration
[15:37:56][Station\Source\Station.sln] Build (1s)
[15:37:56][Build] MSBuild (1s)
[15:37:56][MSBuild] Station\Source\Framework\Framework.vcxproj.metaproj: Build default targets (1s)
[15:37:56][Station\Source\Framework\Framework.vcxproj.metaproj] Build (1s)
[15:37:56][Build] MSBuild (1s)
[15:37:56][MSBuild] Station\Source\CodeGen\CodeGen.vcxproj: Build default targets
[15:37:56][Station\Source\CodeGen\CodeGen.vcxproj] Build
[15:37:56][Build] Exec
[15:37:56][Exec] "C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe" /build "X:\BuildAgent\work\f29a0005efa126f2\Station\Source\CodeGen\CodeGen.vcxproj" "/solution:X:\BuildAgent\work\f29a0005efa126f2\Station\Source\Station.sln" "/config:Debug" "/platform:VisualGDB"
[15:37:57][Exec] VisualGDB: Run "cmd.exe /c ivcg.bat" in directory "X:\BuildAgent\work\f29a0005efa126f2\Station\Source\CodeGen\.." on local computer
[15:37:57][Exec] 'ivcg.bat' is not recognized as an internal or external command,
[15:37:57][Exec] operable program or batch file.
[15:37:57][Exec] -------------------------------------------------------------
[15:37:57][Exec] Command exited with code 1
[15:37:57][Exec] Executable: cmd.exe
[15:37:57][Exec] Arguments: /c ivcg.bat
[15:37:57][Exec] Directory: X:\BuildAgent\work\f29a0005efa126f2\Station\Source\CodeGen\..
[15:37:57][Exec] VisualGDB Command-line action failed
[15:37:57][Exec] VisualGDB Build has failed. See the Output window for more details.
[15:37:57][Exec] C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44, 5): error MSB3073: The command ""C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe" /build "X:\BuildAgent\work\f29a0005efa126f2\Station\Source\CodeGen\CodeGen.vcxproj" "/solution:X:\BuildAgent\work\f29a0005efa126f2\Station\Source\Station.sln" "/config:Debug" "/platform:VisualGDB"" exited with code 1.
[15:37:57][Step 5/6] Process exited with code 1
[15:37:57][Step 5/6] MSBuild output
[15:37:58][Step 5/6] Step Execute Station.sln (Visual Studio (sln)) failed
0
1 comment

Hi, and sorry for the delay.

Have you tried running that on the build agent's machine outside teamcity? Does it work? You can try following this steps when the build works outside of teamcity but doesn't when run by the application: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

Other than that, it seems that it doesn't find the ivcg.bat in Source\ (CodeGen\.. would cancel each other out), is it there on the build agent after downloading the sources?

0

Please sign in to leave a comment.