Forums

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

error while using variable for selfhost runs-on

Arunkumar Gaddam August 13, 2025

Hello team,

 

I would like to store label as variable in runs-on step

ex:

 

- step
           name: use selfhost
           runs-on:
               - self.hosted
               - linux
               - ${{label}}

Since we repeat the step in multiple repos, we would like to store label information in repository variables

does pipeline currently support this ?

if not how can we make it work ?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 14, 2025

Hi @Arunkumar Gaddam 

The runs-on parameter does not support variables. You will need to use static values for this field, unfortunately.

I've re-opened an existing feature request raised with our developers:

Please feel free to Watch that request and Vote for it to receive updates related to its implementation.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events