Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Why the :yarnSetup task is executed in Bamboo docker build, can someone help me with this error? THX

Error Message:

 

:cleanResources UP-TO-DATE
build   13-Mar-2018 17:30:11    :bootBuildInfo
build   13-Mar-2018 17:30:11    :nodeSetup SKIPPED
build   13-Mar-2018 17:30:11    :yarnSetup FAILED
build   13-Mar-2018 17:30:11    
build   13-Mar-2018 17:30:11    FAILURE: Build failed with an exception.
build   13-Mar-2018 17:30:11    
build   13-Mar-2018 17:30:11    * What went wrong:
build   13-Mar-2018 17:30:11    Execution failed for task ':yarnSetup'.
build   13-Mar-2018 17:30:11    > A problem occurred starting process 'command 'npm''
build   13-Mar-2018 17:30:11    
build   13-Mar-2018 17:30:11    * Try:
build   13-Mar-2018 17:30:11    Run with --stacktrace option to get the stack trace. Run with --info or 3 actionable tasks: 2 executed, 1 up-to-date
build   13-Mar-2018 17:30:11    --debug option to get more log output.
build   13-Mar-2018 17:30:11    
build   13-Mar-2018 17:30:11    * Get more help at https://help.gradle.org
build   13-Mar-2018 17:30:11    
build   13-Mar-2018 17:30:11    BUILD FAILED in 20s
build   13-Mar-2018 17:30:12    Removing intermediate container 4c6ed30b99b9
error   13-Mar-2018 17:30:12    The command '/bin/sh -c ./gradlew -Pprod bootRepackage' returned a non-zero code: 1
simple  13-Mar-2018 17:30:12    Failing task since return code of [/usr/bin/docker build --force-rm=true --tag=sdkimage /bamboo_home/xml-data/build-dir/VCP-VCPCG0-JOB1] was 1 while expected 0
error   13-Mar-2018 17:30:12    Error occurred while running Task 'Build sdk-image to compile source code (Release)(2)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli.
error   13-Mar-2018 17:30:12    com.atlassian.bamboo.task.TaskException: Failed to execute task
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:53)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(DockerCliTask.java:60)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:317)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:216)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:138)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
error   13-Mar-2018 17:30:12        at java.lang.Thread.run(Thread.java:748)
error   13-Mar-2018 17:30:12    Caused by: com.atlassian.bamboo.plugins.docker.client.DockerException: Error running Docker build command
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.client.DockerCmd.build(DockerCmd.java:189)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:40)
error   13-Mar-2018 17:30:12        ... 17 more
error   13-Mar-2018 17:30:12    Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/bin/docker build --force-rm=true --tag=sdkimage /bamboo_home/xml-data/build-dir/VCP-VCPCG0-JOB1
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(DockerTaskProcessService.java:60)
error   13-Mar-2018 17:30:12        at com.atlassian.bamboo.plugins.docker.client.DockerCmd.build(DockerCmd.java:185)

0 answers

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 6
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