The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to select a runner label that's in a repository label

Sérgio Baixo
Contributor
October 8, 2024

I want to execute a step in a self hosted runner but I don't want to specify the runner label in the yml. I have created a repository label with a name and the runner's label as value as shown in the image. Is it possible to access this variable value in the runs-on section of a step?

runner.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2024

Hi Sérgio,

This is not supported at the moment in a static yml file. We have a feature request that you can vote for to express your interest:

If you look at the last reply in that feature request (on 8th August 2024), one of my colleagues shared that this is possible with dynamic pipelines (this is a feature available on the Premium billing plan). My colleague also shared a few resources on dynamic pipelines:

And an example dynamic pipelines app that does something similar:

I believe your use case could be achieved by retrieving the variable in the app with an API call:

Kind regards,
Theodora

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events