PHPUnit exits with 255 on hosted Bamboo

I've been having trouble getting the tests to run for our project.  I have also tested a very simple example with one test and a simple assertions.  No matter what phpunit always exits with 255 instead of 1 and the job fails.  Any thoughts as to what is configured wrong?

We recently moved from hosted to on-demand JIRA and are interested in also migrating our Jenkins to Bamboo on demand.

5 answers

0 vote

Could you paste the build log?

 

simple	15-Dec-2014 11:05:29	Build Innography - Advanced Analysis - First Attempt #47 (IN-AA-FA-47) started building on agent Elastic Agent on i-d18d0f2f
simple	15-Dec-2014 11:05:29	Build working directory is /home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA
simple	15-Dec-2014 11:05:29	Executing build Innography - Advanced Analysis - First Attempt #47 (IN-AA-FA-47)
simple	15-Dec-2014 11:05:29	Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple	15-Dec-2014 11:05:29	Updating source code to revision: a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0
simple	15-Dec-2014 11:05:29	Creating local git repository in '/home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA/.git'.
simple	15-Dec-2014 11:05:30	Initialized empty Git repository in /home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA/.git/
simple	15-Dec-2014 11:05:30	Fetching 'refs/heads/master' from 'https://github.com/Innography/app.git'. Will try to do a shallow fetch.
simple	15-Dec-2014 11:05:37	From https://github.com/Innography/app
simple	15-Dec-2014 11:05:37	 * [new branch]      master     -> master
simple	15-Dec-2014 11:05:37	Checking out revision a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0.
simple	15-Dec-2014 11:05:39	Already on 'master'
simple	15-Dec-2014 11:05:39	Updated source code to revision: a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0
simple	15-Dec-2014 11:05:39	Finished task 'Checkout Default Repository' with result: Success
simple	15-Dec-2014 11:05:39	Running pre-build action: VCS Version Collector
simple	15-Dec-2014 11:05:39	Running pre-build action: Clover Grails PreBuild Action
simple	15-Dec-2014 11:05:40	Starting task 'PHPUnit' of type 'com.atlassian.bamboo.plugins.php:task.builder.phpunit'
command	15-Dec-2014 11:05:40	Beginning to execute external process for build 'Innography - Advanced Analysis - First Attempt #47 (IN-AA-FA-47)'\n ... running command line: \n/usr/bin/phpunit-3.7 ./tests/model/QueryObjectTest.php\n ... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA\n ... using extra environment variables: \nbamboo_capability_system_builder_grailsBuilder_Grails_1_3=/opt/grails-1.3\nbamboo_capability_system_jdk_JDK_1_6=/opt/jdk-6\nbamboo_capability_system_builder_grailsBuilder_Grails_1_2=/opt/grails-1.2\nbamboo_capability_system_jdk_JDK_1_7=/opt/jdk-7\nbamboo_planRepository_type=gh\nbamboo_shortPlanName=Advanced Analysis\nbamboo_planKey=IN-AA\nbamboo_capability_system_jdk_JDK_1_5=/opt/jdk-5\nbamboo_repository_294913_revision_number=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_capability_system_builder_node_Node_js_0_10=/opt/node-0.10/bin/node\nbamboo_planRepository_1_branchName=\nbamboo_shortPlanKey=AA\nbamboo_shortJobKey=FA\nbamboo_build_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA\nbamboo_repository_revision_number=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_capability_system_builder_mvn3_Maven_3_0=/opt/maven-3.0\nbamboo_planName=Innography - Advanced Analysis\nbamboo_buildResultsUrl=https://innography.atlassian.net/builds/browse/IN-AA-FA-47\nbamboo_capability_system_builder_phpunit_PHPUnit_3_4=/usr/bin/phpunit-3.4\nbamboo_capability_system_builder_mvn3_Maven_3_1=/opt/maven-3.1\nbamboo_planRepository_revision=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_capability_system_builder_phpunit_PHPUnit_3_7=/usr/bin/phpunit-3.7\nbamboo_buildResultKey=IN-AA-FA-47\nbamboo_capability_system_builder_mvn3_Maven_3_2=/opt/maven-3.2\nbamboo_buildKey=IN-AA-FA\nbamboo_repository_previous_revision_number=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_capability_system_builder_mvn2_Maven_2_1=/opt/maven-2.1\nbamboo_capability_system_builder_mvn2_Maven_2_2=/opt/maven-2.2\nbamboo_repository_294913_branch_name=\nbamboo_working_directory=/home/bamboo/bamboo-agent-home/xml-data/build-dir/IN-AA-FA\nbamboo_capability_system_builder_mvn2_Maven_2_0=/opt/maven-2.0\nbamboo_repository_294913_previous_revision_number=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_agentWorkingDirectory=/home/bamboo/bamboo-agent-home/xml-data/build-dir\nbamboo_capability_system_builder_ant_Ant_1_9=/opt/ant-1.9\nbamboo_capability_system_builder_ant_Ant_1_8=/opt/ant-1.8\nbamboo_buildPlanName=Innography - Advanced Analysis - First Attempt\nbamboo_repository_name=innography-app\nbamboo_resultsUrl=https://innography.atlassian.net/builds/browse/IN-AA-FA-47\nbamboo_planRepository_1_revision=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_ManualBuildTriggerReason_userName=csteiger\nbamboo_planRepository_1_previousRevision=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_planRepository_1_type=gh\nbamboo_planRepository_1_name=innography-app\nbamboo_capability_system_hg_executable=/usr/bin/hg\nbamboo_planRepository_branchName=\nbamboo_capability_system_builder_mvn2_Maven_2=/opt/maven-2.2\nbamboo_shortJobName=First Attempt\nbamboo_repository_branch_name=\nbamboo_agentId=1998849\nbamboo_planRepository_previousRevision=a69f655e4a4e8ca0cf18815a2b0c1190dc38fcd0\nbamboo_repository_294913_name=innography-app\nbamboo_dependenciesDisabled=false\nbamboo_capability_system_builder_grailsBuilder_Grails_2_4=/opt/grails-2.4\nbamboo_planRepository_name=innography-app\nbamboo_buildNumber=47\nbamboo_capability_system_builder_grailsBuilder_Grails_2_0=/opt/grails-2.0\nbamboo_capability_system_builder_grailsBuilder_Grails_2_1=/opt/grails-2.1\nbamboo_capability_system_builder_grailsBuilder_Grails_2_2=/opt/grails-2.2\nbamboo_capability_system_builder_grailsBuilder_Grails_2_3=/opt/grails-2.3\nbamboo_buildTimeStamp=2014-12-15T11:01:27.308-06:00\n
simple	15-Dec-2014 11:05:43	Failing task since return code of [/usr/bin/phpunit-3.7 ./tests/model/QueryObjectTest.php] was 255 while expected 0
simple	15-Dec-2014 11:05:46	Finished task 'PHPUnit' with result: Failed
simple	15-Dec-2014 11:05:46	Running post build plugin 'Artifact Copier'
simple	15-Dec-2014 11:05:46	Running post build plugin 'npm Cache Cleanup'
simple	15-Dec-2014 11:05:46	Running post build plugin 'NCover Results Collector'
simple	15-Dec-2014 11:05:46	Running post build plugin 'Clover Results Collector'
simple	15-Dec-2014 11:05:46	Finalising the build...
simple	15-Dec-2014 11:05:46	Stopping timer.
simple	15-Dec-2014 11:05:46	Build IN-AA-FA-47 completed.
simple	15-Dec-2014 11:05:46	Running on server: post build plugin 'Clover Delta Calculator'
simple	15-Dec-2014 11:05:46	Running on server: post build plugin 'Build Hanging Detection Configuration'
simple	15-Dec-2014 11:05:46	Running on server: post build plugin 'NCover Results Collector'
simple	15-Dec-2014 11:05:46	Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple	15-Dec-2014 11:05:46	All post build plugins have finished
simple	15-Dec-2014 11:05:46	Generating build results summary...
simple	15-Dec-2014 11:05:46	Saving build results to disk...
simple	15-Dec-2014 11:05:46	Indexing build results...
simple	15-Dec-2014 11:05:46	Finished building IN-AA-FA-47.

any luck? having same problem

 

I made an ec2 isntance that had everything on it needed to run our tests and created an image, bamboo then uses that image to create an instance.  I also set it to create a single instance that is never taken down so that I can ssh in to debug if necessary.

 

 

I'm having the same problem with PHPUnit, and I was wondering how could we fix that issue.

Thanks a lot.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,317 views 0 5
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