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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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 widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

106 views 2 0
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