bamboo build failing for ANT

Prajakta Babar July 29, 2014

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

0 votes
Answer accepted
Prajakta Babar August 3, 2014

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

1 vote
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 30, 2014

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

0 votes
Prajakta Babar August 3, 2014

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

0 votes
Prajakta Babar July 30, 2014

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'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events