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

How can I give the job requirements to use a dedicated agent in bamboo spec

pradeep kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2019

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

1 answer

1 vote
Steffen Opel [Utoolity]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2019

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);

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events