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

Allow usage of variables in import statement for shared pipelines

XMLWordPrintable

    • 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.

      Hi team,

      Variables are not supported in the import statement for defining a custom version/tag and these must be defined statically instead, for example:

      image: atlassian/default-image:2
      pipelines:
        branches:
          master: 
            import: testrepository:${{MAVEN_SHARED_BITBUCKET_PIPELINES_VERSION}}:parent-pipeline
      

      The following error is thrown:

      There was an error fetching the imported bitbucket-pipelines.yml file. Confirm the import statement and exported file are correctly configured.
      

      If this could be supported, this will allow for dynamic versioning considerations when using shared pipelines.

      Cheers!

      Benjamin Pellaers
      Cloud Engineer | Bitbucket Cloud Support
      More About Bitbucket | FAQ | Roadmap | Knowledge Base
      Business Hours: Mon. to Fri. 8:30 a.m. to 5:30 p.m (AEDT) | Atlassian Support offerings

              Unassigned Unassigned
              57b7f67f3625 Ben
              Votes:
              7 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: