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

XMLWordPrintable

    • 4

      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.

              Assignee:
              Edmund Munday
              Reporter:
              Patrik S (Inactive)
              Votes:
              76 Vote for this issue
              Watchers:
              51 Start watching this issue

                Created:
                Updated:
                Resolved: