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

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

mikayil-abdullah May 17, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

mikayil-abdullah May 17, 2019

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?

mikayil-abdullah May 17, 2019

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

Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

mikayil-abdullah May 17, 2019

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

Jimmy Seddon
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

mikayil-abdullah May 17, 2019

Oh, I got that. Thanks.

Like Jimmy Seddon likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events