Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Do all agents need to have all the capabilities a job requires Edited

I've set up Bamboo on a separate host and now I'm playing with. So far, I've been able to check out a sample source code and build it with maven successfully.  Then I added a remote agent, which is my local machine with Docker executable on it. Bamboo shows Docker among many other capabilities of the remote agent. Now, I add a third task to my job, which is a Docker image build and save it. I get `No agents meet this job's requirements.` warning. What's weird is in the Requirements tab it shows 1 agent with the Docker capability, which is my local machine. I've followed  this atlassian troubleshooting guide but it didn't help (I have no dedicated agents.) Now I'm kinda confused, do I need to have all the required capabilities in all agents? Or, maybe at least one of the agents has to have all the capabilities? If no, then what's the reason I get this warning?

I have Jenkins background and in Jenkins I am able to specify which agent must execute which part of a job. Isn't that or similar possible in Bamboo?

 

1 answer

1 accepted

1 vote
Answer accepted
Jimmy Seddon Community Leader May 17, 2019

@mikayil-abdullah ,

Agents run jobs.  So a single agent needs to be capable of running all the tasks contained within a single job.  If you can, you will want to split out the docker task you created into it's own job and then you can have both tasks run in parallel.

I hope that helps, let me know if you have any other questions.

-James

Oh, I see. But in that case, I won't be able to access the artifacts produces as a result of maven build as:

1. They run in parallel and the Docker build job will reach the point it needs the artifacts much earlier than the build is finished.

2. Can one job access files of another job?

Oh, maybe I should have a separate stage for it?

Jimmy Seddon Community Leader May 17, 2019

Hi @mikayil-abdullah,

I was just about to say that.  Yes, build the maven code first in it's own stage/job.  Then, have the docker stage/job run after that which can use the artifacts built in the maven stage.

-James

Thanks, @Jimmy Seddon Can you btw give me a quick tip on how to use artifacts of the previous stage?

Jimmy Seddon Community Leader May 17, 2019

Absolutely!  So what you will want to do is use the "Artifact Downlad" task type and you are going to select the build plan you are currently in and it sill give you the option to select all artifact or you can specify which shared artifacts you wish to download.

-James

Oh, I got that. Thanks.

Like Jimmy Seddon likes this

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

251 views 4 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