No failed tests found, a possible compilation error occurred.
Asked by fmontada:

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](https://saasplatform.atlassian.net/builds/browse/BOOK-BUIL-JOB1-2/) {#toc-hId-1679767205}
-------------------------------------------------------------------------------------------------------------------------

The job generated some errors, drill down into the **[full build log](https://saasplatform.atlassian.net/builds/browse/BOOK-BUIL-JOB1-2/log)** for more details.  
Could not find test result reports in the C:\\build\\BOOK-BUIL-JOB1 directory.

<br />

Could you help us ? What we are doing wrong

Thanks

Francisco


Answers:
author: Ashrith
body: I am also getting the same error. Is there any update for this?

comments: author: David Shorter
body: Asrith, were you able to resolve this ?


author: fmontada
body: Hi Nathan

If We Start "[Windows stock image](https://saasplatform.atlassian.net/builds/admin/elastic/image/configuration/viewElasticImageConfiguration.action?configurationId=98305 "Elastic Image Configuration shipped with Bamboo")" the build is working but if We Start the "[Ubuntu stock image](https://saasplatform.atlassian.net/builds/admin/elastic/image/configuration/viewElasticImageConfiguration.action?configurationId=98308 "Elastic Image Configuration shipped with Bamboo")" we got this error

```
error	28-Aug-2015 07:28:42	Caused by: java.lang.IllegalArgumentException: The working directory must exist before executing the processerror	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" ?

<br />

Thanks

Francisco

comments: author: jaydlawrence
body: 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.


author: fmontada
body: 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 processerror	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 taskerror	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 processerror	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


author: lassian
body: 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  
[](https://community.atlassian.com/t5/Bamboo-questions/No-failed-tests-found-a-possible-compilation-error-occurred/qaq-p/373301?attachment-id=1893){#link_11683d67233493}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/11767/1/image2015-8-28%2017%3A0%3A13.png){#display_11683d67233493_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/No-failed-tests-found-a-possible-compilation-error-occurred/qaq-p/373301?attachment-id=1894){#link_11683d67233493_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/11767/2/image2015-8-28%2017%3A0%3A56.png){#display_11683d67233493_2}


Tags: cloud