bamboo build failing for ANT

Following error is occuring

unrecognized option --log-xml

Failing task since return code of [/usr/local/bin/phpunit --log-xml **/phpunit.xml .] was 1 while expected 0

i have added ANT and PHPUnit3.3 as tasks to build a PHP process

4 answers

1 accepted

Accepted Answer
0 votes

this problem was occuring due to faulty path. i gave the correct path and the build was successful.

1 vote

Looks like you use PHPUnit 4 not 3. You should use PHPUnit task instead of PHPUnit 3.3.

Make sure that in PHPUnit task you select "Log test execution to an XML file" option

Hi,

i am getting following erroe when tried to run a bamboo buils. Bamboo version is 5.5.1.

phpunit:
31-Jul-2014 11:56:48 [exec] PHPUnit 4.1.1 by Sebastian Bergmann.
31-Jul-2014 11:56:48 [exec]
31-Jul-2014 11:56:48 [exec] Configuration read from /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/build/phpunit.xml
31-Jul-2014 11:56:48 [exec]
31-Jul-2014 11:56:49 [exec] ................................
31-Jul-2014 11:56:49 [exec]
31-Jul-2014 11:56:49 [exec] Time: 634 ms, Memory: 21.75Mb
31-Jul-2014 11:56:49 [exec]
31-Jul-2014 11:56:49 [exec] OK (32 tests, 51 assertions)
31-Jul-2014 11:56:49 [exec]
31-Jul-2014 11:56:49 [exec] Generating code coverage report in Clover XML format ... done
31-Jul-2014 11:56:49 [exec]
31-Jul-2014 11:56:49 [exec] Generating Crap4J report XML file ... done
31-Jul-2014 11:56:49 [exec]
31-Jul-2014 11:56:50 [exec] Generating code coverage report in HTML format ... done
31-Jul-2014 11:56:50
31-Jul-2014 11:56:50 BUILD SUCCESSFUL
31-Jul-2014 11:56:50 Total time: 1 second
31-Jul-2014 11:56:50 Parsing test results...
31-Jul-2014 11:56:50 File /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/**/build/*.xml was ignored because it was modified (Thu Jul 31 11:45:46 IST 2014) before task started (Thu Jul 31 11:56:47 IST 2014)
31-Jul-2014 11:56:50 File /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/build/phpdox.xml was ignored because it was modified (Wed Jul 30 20:02:44 IST 2014) before task started (Thu Jul 31 11:56:47 IST 2014)
31-Jul-2014 11:56:50 File /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/build/phpmd.xml was ignored because it was modified (Wed Jul 30 20:02:44 IST 2014) before task started (Thu Jul 31 11:56:47 IST 2014)
31-Jul-2014 11:56:50 File /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/build/phpunit.xml was ignored because it was modified (Wed Jul 30 20:02:44 IST 2014) before task started (Thu Jul 31 11:56:47 IST 2014)
31-Jul-2014 11:56:50 File /var/atlassian/application-data/bamboo/xml-data/build-dir/PTP-PTPP-JOB1/build/travis-ci.xml was ignored because it was modified (Wed Jul 30 20:02:44 IST 2014) before task started (Thu Jul 31 11:56:47 IST 2014)
31-Jul-2014 11:56:50 Failing task since test cases were expected but none were found.
31-Jul-2014 11:56:50 Finished task 'Build App using ANT'

this problem was occuring due to faulty path. i gave the correct path and the build was successful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

510 views 0 9
Read article

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