I am able to choose the dedicated agent using job requirement in the manual plan but as I am running the plan using spec I need to give the job requirements in the bamboo spec to use dedicated agent
Thanks in advance
You can achieve this with the 'requirements' parameter of a job definition, which is available as Job.requirements in Bamboo Specs (Java), and job.requirements in Bamboo Specs (YAML) - here's the Java example:
Job job = new Job("My Job", "JOB1")
.tasks(tasks)
.artifacts(testReportArtifact)
.artifactSubscriptions(warArtifact)
.requirements(osLinux);
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.