Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21510

Ability to use a variable with Bitbucket runner 'runs-on' statement

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Currently, Bitbucket runner 'runs-on' on statement on the YML file does not allow using variables (workspace, repository and deployment variables) to specify which runner to run, and throws the following error :

      "There is an error in your bitbucket-pipelines.yml at [pipelines > custom > initial-testing > 0 > step]. To be precise: This runs-on label: $runner is invalid. Only alphanumeric characters and dots can be used in runs-on labels."

       - step:
      name: Initial testing
      runs-on:
      - $runner 

      Where: $runner is a deployment variable.

      It would be nice to have the ability to use the variables to specify the runner label.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              641e77b2eb21 Patrik S
              Votes:
              66 Vote for this issue
              Watchers:
              36 Start watching this issue

              Dates

                Created:
                Updated: