Failed deploy as artifact isn't generated in a build plan

I have a build plan in which different jobs are configured to build components of our application. Each job generates an artifact. My deployment plan has a task to download all artifacts from the build plan. This works fine in general use.

But, I came across a case where one component had no new updates and thus no new artifact was generated and the build plan succeeded, triggering the deployment plan. But, the deployment plan fails as there is no generated artifact. I couldn't find a way to make deployment plan not fail in such a scenario. Other option is to find a way to modify the job in the build plan to always generate an artifact, even if there's no update.

My build job looks like this

  • Source Code Checkout
  • npm command
  • Script to create artifacts directory
  • Command(tar) to generate artifacts file

My Deployment Tasks are

  • Artifacts Download (All artifacts)
  • SCP
  • Run configuration script

1 answer

0 vote

Hello Mehul,

Thank you for your question.

I would suggest you on instead of running the following task:

  • Command(tar) to generate artifacts file

why don't you use Sharing artifacts so when a build is triggered, artifact(s) associated with that build will be generated and later consumed by your "My Deployment Tasks".

In Cloud, Bamboo keeps the last artifact generated by a build but not by a deployment.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support


Rafeal, I have artifacts sharing enabled. It wouldn't even work without generating the tar file as the builds are just a directory with lots of files, they are node.js projects. While reading up on various answers here I came across a suggestion to zip the files and went ahead with tar. But, that isn't really the issue. Issue is, when there are no updates to the project, nothing is built and thus deployment task doesn't find the artifact for that component.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,801 views 0 6
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