Hello,
I have set up a Bamboo build plan that requires all jobs/stages to be run on the same physical machine (IE they depend on each other). When they are not, the builds fail. Is there any way to specify on a build-level that the jobs must run on the same physical machine? We use ELASTIC agents here, so we can't assume the hostname. I understand the Agent Matrix and Capabilities and all that, but this problem is not solved by specifying a capability since multiple instances of the ELASTIC agent will all have the same ones. Thanks!
Hi Derek,
Use tasks instead of jobs. They will be executed sequentially on the same agent.
I'm aware of how stages/jobs/tasks work, and I did consider refactoring everything into a single job, but there are fairly distinct stages. (A. lint the code and create a build artifact, B. run Chef provisioning to create a webserver, C. run the tests). C is dependent on B which is dependent on A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The whole point of using Stages is ability to parallelize Job execution. By putting it all on the same agent you're serializing the whole flow so what's the point of creating stages? I think that Sergey's answer solves your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Defining a custom key/label for each agent (like: Hostname with the corresponding hostname) and then ensure the job has the requirement to run on a specific hostname?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem with this method is that we use ELASTIC agents - they spin up/down as needed and thus hostnames will never be the same at all times.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see one on each job, and I already have some required capabilities defined. The problem with this method is that we use ELASTIC agents - they spin up/down as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.