Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,887
Community Members
 
Community Events
165
Community Groups

getting the below error need a solution

Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3.
error	23-Mar-2019 20:09:59	com.atlassian.bamboo.task.TaskException: Failed to execute task
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:104)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:203)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:175)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error	23-Mar-2019 20:09:59		at java.lang.Thread.run(Thread.java:748)
error	23-Mar-2019 20:09:59	Caused by: java.lang.IllegalArgumentException: The working directory C:\Program Files\Bamboo\bin\xml-data\build-dir\ANZ-ANZ4-JOB1\C:\Users\Bharath\Desktop\Bamboo must exist before executing the process
error	23-Mar-2019 20:09:59		at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:138)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:195)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:210)
error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error	23-Mar-2019 20:09:59		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	23-Mar-2019 20:09:59		at java.lang.reflect.Method.invoke(Method.java:498)
error	23-Mar-2019 20:09:59		at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
error	23-Mar-2019 20:09:59		at com.sun.proxy.$Proxy396.executeExternalProcess(Unknown Source)
error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error	23-Mar-2019 20:09:59		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error	23-Mar-2019 20:09:59		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	23-Mar-2019 20:09:59		at java.lang.reflect.Method.invoke(Method.java:498)
error	23-Mar-2019 20:09:59		at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
error	23-Mar-2019 20:09:59		at com.sun.proxy.$Proxy396.executeExternalProcess(Unknown Source)
error	23-Mar-2019 20:09:59		at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:72)
error	23-Mar-2019 20:09:59		... 16 more

1 answer

1 vote
Foong Atlassian Team Apr 15, 2019

Is the setting "Working subdirectory" in the Maven task configured with "C:\Users\Bharath\Desktop\Bamboo"?

Bamboo perform build in the working directory, for example "C:\Program Files\Bamboo\bin\xml-data\build-dir\ANZ-ANZ4-JOB1". The setting "Working subdirectory" is used to add subdirectory to the working directory.

By the way, it seems that you have installed Bamboo with Bamboo Home configured as the same directory as Bamboo Installation directory. It is not recommended to use the same directory.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

940 views 3 8
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