Can I skip an artifact requirement for disabled Bamboo jobs?

I have a job that has a dependency on a previous job that defines an artifact. If I disable the previous job, the subsequent job will fail because the artifact is not generated. Is there a way to allow the subsequent job to notice when the previous job is disabled and skip the requirement for its artifact to exist?

1 answer

1 accepted

0 votes
Accepted answer

Hi Brent,

For the second job that has a dependency on a previously generated artifact, you should be able to skip the artifact checking stage by navigating to the Artifacts tab for this job and edit or delete the artifact dependencies that you have created for it. This way, it won't be dependent on the artifact created by the previous job that you have disabled, so the build won't fail because of it.

I hope this helps and I understood your question correctly.

Best,

Sepideh

Thanks Sepideh. While that solution will work, it's a bit manual for my clients' liking. Suppose they have a plan with multipe jobs. If they disable a job then they will have to manually crawl through all the downstream jobs and delete the checks for any artifacts that job produced. Then, if the original job is re-enabled, someone has to go back and put that artifact check back into those downstream jobs. That's assuming you even know that there is an artifact dependency on those jobs since the plan's audit log does not keep track of the deletion of shared artifacts.

It would be nice if, artifact sharing/checking could be:

  • Toggleable instead of just removable
  • There was an option on whether or not to make the absence of a shared artifact a fatal error or to continue with the job.
  • When disabling a job, downstream jobs automatically disable checking for artifacts that come from that job.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

1,545 views 8 7
View question

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