Always geting "No agent can build this Job" for php/phpunit/composer/ant

I'm setting up a project with php. Everything trigger properly before I got any task other thant checkout.

I've add phpunit call with a custom bootstrap in the phpunit.xml file. It failed because the file wasn't there. This file is generated via composer.phar that need to be executed prior the phpunit task. So I add a ant call that will use the default configuraiton (so just "ant") and here is the build.xml file

<?xml version="1.0" encoding="UTF-8"?>
<project name="base" default="build">
  <target name="build">
    <exec executable="php">
      <arg value="composer.phar" />
	  	<arg value="install" />
	  </exec>
  </target>
</project>

Since than the build get trigger but get stuck with:

"No agent can build this Job"

I don't know what to do from there !

2 answers

1 accepted

Accepted Answer
0 votes

The issue have been resolve using the Atlassion support. It was related to the fact that I 'ant' instead of 'ant 1.8' for the job configuration

Hi,

You can solve this adding the necessary capabilities on the Remote Agent. Please proceed as described here: https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+agent+capabilities

If you still need help with this, please raise a support request at https://support.atlassian.com

Lucas Lima

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

127 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you