"No agent can buld this job", but my remote fits all capabilities
Asked by Antonio Anzivino:

I have a Bamboo installation on a Linux machine and a project in Microsoft .NET to build.

I have successfully set up a remote agent on a Windows box equipped with all Java tooling (so it can run Ant jobs for other projects too) and .NET compilers. The remote agent is up and running. Following is the list of capabilities, auto-detected by Bamboo

```
Key     Value     Operationssystem.os     Windows     View | Edit | DeleteAdd ExecutableExecutable 'executable' capabilities define the executables which are available to your build plans.Executable labelA label to uniquely identify this executable     PathPlease enter the path to your executable     OperationsAnt (Ant)     C:\Program Files\Apache Software Foundation\Ant     View | Edit | DeleteMSBuild v14.0 (32bit) (MSBuild)     C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe     View | Edit | DeleteMSBuild v14.0 (64bit) (MSBuild)     C:\Program Files (x86)\MSBuild\14.0\bin\amd64\MSBuild.exe     View | Edit | DeleteMSBuild v2.0 (32bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe     View | Edit | DeleteMSBuild v2.0 (64bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe     View | Edit | DeleteMSBuild v3.5 (32bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe     View | Edit | DeleteMSBuild v3.5 (64bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe     View | Edit | DeleteMSBuild v4.0 (32bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe     View | Edit | DeleteMSBuild v4.0 (64bit) (MSBuild)     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe     View | Edit | DeleteNode.js (Node.js)     C:\Program Files\nodejs\node.exe     View | Edit | Deletesystem.builder.MSBuild     C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe     View | Edit | DeleteAdd JDKJDK 'JDK' capabilities define the JDKs which are available to your build plans.JDK label     Java home     OperationsJDK     C:\Program Files\Java\jdk1.8.0_66     View | Edit | DeleteJDK 1.7     C:\Program Files\Java\jdk1.7.0_65     View | Edit | DeleteJDK 1.8     C:\Program Files\Java\jdk1.8.0_66     View | Edit | DeleteJDK 1.8.0_66     C:\Program Files\Java\jdk1.8.0_66     View | Edit | DeleteAdd GitGit The path to the Git executable (e.g. 'C:\Program Files (x86)\Git\git.exe' or '/usr/local/git/bin/git')Executable     Path     OperationsGit     C:\Program Files\Git\cmd\git.exe     View | Edit | DeleteEditShared capabilities The following 'shared' capabilities are inherited by this agent. Note that the value of a shared capability is overridden by the value of an agent-specific capability with the same key/label (if one exists). No shared capabilities.
```

Ok, so MSBuild is there. I then created a simple job with a single MSBuild task, but then I end up in "No agents meet this job's requirements".

Interesting to say that I tried to manually add a "Windows" capability (system.os equals Windows) to the job and still get the same result. I can still see the agent is alive.

Question is:

How do I remotely build a .NET project on a Bamboo instance which is installed on a Linux box?


Answers:
author: Antonio Anzivino
body: Forgot to mention: the build job requires "MSBuild v4.0 (32bit)" which is listed in the above capabilities


Tags: bamboo-administration