Bamboo 5.5.1 build 4306 and Visual Studio 2013
Asked by Chris Hearson:

Hi,

I am trying to create a Bamboo build plan using Visual Studio 2013 as the builder. When I trigger the build it starts but never completes. Below is the build log I am seeing. As you can see, the build appeared to start and I manually stopped it after waiting for about 30 minutes.

```
simple	26-Sep-2014 12:13:56	Build Digital Library System - Ingest Management Console 19.00 - Release Build #7 (DLS-IMCREL-JOB1-7) started building on agent Default Agentsimple	26-Sep-2014 12:13:56	Build working directory is E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1simple	26-Sep-2014 12:13:56	Executing build Digital Library System - Ingest Management Console 19.00 - Release Build #7 (DLS-IMCREL-JOB1-7)simple	26-Sep-2014 12:13:56	Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'simple	26-Sep-2014 12:13:56	Running preRetrieveSourceCode task...simple	26-Sep-2014 12:13:57	Build always requires a clean checkoutsimple	26-Sep-2014 12:13:57	Cleaning build directory 'E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1'error	26-Sep-2014 12:14:05	Unable to clean source directory 'E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1' Unable to delete directory E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1\BL.DLS.IngestManagement.Console.Setup.simple	26-Sep-2014 12:14:05	Build always requires a clean checkoutsimple	26-Sep-2014 12:14:05	Cleaning build directory 'E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1'simple	26-Sep-2014 12:14:05	Updating source code to revision: 11916simple	26-Sep-2014 12:14:05	Working directory 'E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1' is empty. Checking out SVN URL 'https://v8b-vera.ad.bl.uk/svn/DLS/IngestManagement/Trunk'simple	26-Sep-2014 12:14:55	Updated source code to revision: 11916simple	26-Sep-2014 12:14:55	Running postRetrieveSourceCode task...simple	26-Sep-2014 12:14:55	Finished task 'Checkout Default Repository'simple	26-Sep-2014 12:14:55	Running pre-build action: Clover Grails PreBuild Actionsimple	26-Sep-2014 12:14:55	Running pre-build action: VCS Version Collectorsimple	26-Sep-2014 12:14:55	Starting task 'Visual Studio' of type 'com.atlassian.bamboo.plugin.dotnet:devenv'command	26-Sep-2014 12:14:55	Beginning to execute external process for build 'Digital Library System - Ingest Management Console 19.00 - Release Build #7 (DLS-IMCREL-JOB1-7)'\n ... running command line: \nE:\bamboo-home401\DotNetSupport\devenvrunner.bat E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1 C:\Program Files (x86)\Microsoft Visual Studio 12.0 x86_amd64 IngestManagement.sln /build Release\n ... in: E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1\nbuild	26-Sep-2014 12:14:55	"C:\Program Files (x86)\Microsoft Visual Studio 12.0" build	26-Sep-2014 12:14:55	build	26-Sep-2014 12:14:55	E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1>call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64 build	26-Sep-2014 12:15:16	build	26-Sep-2014 12:15:16	Microsoft Visual Studio 2013 Version 12.0.30501.0.build	26-Sep-2014 12:15:16	Copyright (C) Microsoft Corp. All rights reserved.build	26-Sep-2014 12:15:16	1>------ Build started: Project: BL.DLS.IngestManagement, Configuration: Release Any CPU ------command	26-Sep-2014 12:47:02	Request to stop 'DLS-IMCREL-JOB1-7' received from chearsonsimple	26-Sep-2014 12:47:02	Failing task since return code of [E:\bamboo-home401\DotNetSupport\devenvrunner.bat E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1 C:\Program Files (x86)\Microsoft Visual Studio 12.0 x86_amd64 IngestManagement.sln /build Release] was -1 while expected 0simple	26-Sep-2014 12:47:02	Finished task 'Visual Studio'simple	26-Sep-2014 12:47:02	Running post build plugin 'NCover Results Collector'simple	26-Sep-2014 12:47:02	Running post build plugin 'Clover Results Collector'simple	26-Sep-2014 12:47:02	Running post build plugin 'Artifact Copier'simple	26-Sep-2014 12:47:02	Publishing an artifact: Console MSIerror	26-Sep-2014 12:47:02	Unable to publish artifact [Console MSI]: simple	26-Sep-2014 12:47:02	Finished publishing of artifact Job artifact: [Console MSI], pattern: [BL.DLS.IngestManagement.Console.Setup.msi] anchored at: [BL.DLS.IngestManagement.Console.Setup/Release] in 0ssimple	26-Sep-2014 12:47:02	Finalising the build...simple	26-Sep-2014 12:47:02	Stopping timer.simple	26-Sep-2014 12:47:02	Build DLS-IMCREL-JOB1-7 completed.simple	26-Sep-2014 12:47:02	Running on server: post build plugin 'NCover Results Collector'simple	26-Sep-2014 12:47:02	Running on server: post build plugin 'Clover Delta Calculator'simple	26-Sep-2014 12:47:02	Running on server: post build plugin 'Build Hanging Detection Configuration'simple	26-Sep-2014 12:47:02	Running on server: post build plugin 'Maven Dependencies Postprocessor'simple	26-Sep-2014 12:47:02	All post build plugins have finishedsimple	26-Sep-2014 12:47:03	Generating build results summary...simple	26-Sep-2014 12:47:03	Saving build results to disk...simple	26-Sep-2014 12:47:03	Indexing build results...simple	26-Sep-2014 12:47:03	Finished building DLS-IMCREL-JOB1-7.
```


Answers:
author: Krystian Brazulewicz
body: This fragment of log

```
build	26-Sep-2014 12:15:16	1>------ Build started: Project: BL.DLS.IngestManagement, Configuration: Release Any CPU ------command	26-Sep-2014 12:47:02	Request to stop 'DLS-IMCREL-JOB1-7' received from chearson
```

shows that your build didn't output any information for over 30 minutes. Is this normal? Is it possible that some part of your build requires interaction with the user (either command line or GUI)?

What happens if you run the very same command from the shell?

```
E:\bamboo-home401\DotNetSupport\devenvrunner.bat E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1 "C:\Program Files (x86)\Microsoft Visual Studio 12.0" x86_amd64 IngestManagement.sln /build Release
```

being in the directory

```
E:\bamboo-home401\xml-data\build-dir\131073\DLS-IMCREL-JOB1
```

What is the output then?


Tags: bamboo-administration