It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

No failed tests found, a possible compilation error occurred.

Hi team 

We are using Bamboo Cloud , we are new with Bamboo, we created a new Plan with a simple Job/task "Checkout Default Repository" and "Maven3- clean install"  

The logs of Bamboo said 

27-Aug-2015 23:43:28[INFO] ------------------------------------------------------------------------
27-Aug-2015 23:43:28[INFO] BUILD SUCCESS
27-Aug-2015 23:43:28

[INFO] ------------------------------------------------------------------------

 

but the Status of the build is Failed and we get a red email 

Error summary for Default Job

The job generated some errors, drill down into the full build log for more details.

Could not find test result reports in the C:\build\BOOK-BUIL-JOB1 directory.


Could you help us ? What we are doing wrong

 

Thanks

Francisco  

4 answers

I am also getting the same error. Is there any update for this?

Asrith, were you able to resolve this ?

0 votes
lassian Atlassian Team Aug 27, 2015

Hi Francisco,

When you set-up the maven 3 task did you also select the option "The build will produce test results"?

image2015-8-28 17:0:56.png

If so, this task when complete will look in the directory specified to contain test results.

Now as your build is successful, and if you are not generating any tests results, than with this setting enabled it will treat the lack of test results as a build error.

For more information on configuring the maven task please look at the following documentation.

https://confluence.atlassian.com/bamboo/maven-289277038.html

Regards,

Nathan

Hi Nathan 

Thanks a lot to reply 

Yes I did check it and I do not have any test in my code , that why was failing 

But now I am getting this error with the same Job that was SUCCESS before 

 
error	28-Aug-2015 07:28:42	Caused by: java.lang.IllegalArgumentException: The working directory must exist before executing the process
error	28-Aug-2015 07:28:42		at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
e

 

42	Error occurred while running Task 'build(2)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3.
error	28-Aug-2015 07:28:42	com.atlassian.bamboo.task.TaskException: Failed to execute task
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:114)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:288)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:284)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:200)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:106)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:124)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:114)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
error	28-Aug-2015 07:28:42		at java.lang.Thread.run(Thread.java:745)
error	28-Aug-2015 07:28:42	Caused by: java.lang.IllegalArgumentException: The working directory must exist before executing the process
error	28-Aug-2015 07:28:42		at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:166)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:213)
error	28-Aug-2015 07:28:42		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error	28-Aug-2015 07:28:42		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error	28-Aug-2015 07:28:42		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	28-Aug-2015 07:28:42		at java.lang.reflect.Method.invoke(Method.java:497)
error	28-Aug-2015 07:28:42		at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:134)
error	28-Aug-2015 07:28:42		at com.sun.proxy.$Proxy70.executeExternalProcess(Unknown Source)
error	28-Aug-2015 07:28:42		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error	28-Aug-2015 07:28:42		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error	28-Aug-2015 07:28:42		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	28-Aug-2015 07:28:42		at java.lang.reflect.Method.invoke(Method.java:497)
error	28-Aug-2015 07:28:42		at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
error	28-Aug-2015 07:28:42		at com.sun.proxy.$Proxy70.executeExternalProcess(Unknown Source)
error	28-Aug-2015 07:28:42		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:76)
error	28-Aug-2015 07:28:42		... 17 more

could you help us ?

Thanks again 

Francisco 

Hi Nathan

If We Start "Windows stock image" the build is working but if We Start the "Ubuntu stock image" we got this error 

error	28-Aug-2015 07:28:42	Caused by: java.lang.IllegalArgumentException: The working directory must exist before executing the process
error	28-Aug-2015 07:28:42		at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
e

Do you think is related with "Git Cache directory configuration" ?


Thanks 

Francisco

Francisco Montada, did you ever get to the bottom of this issue? I am using bamboo and trying to run an NPM command and getting the same error.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

683 views 2 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you