Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to import Shared pipelines

Veeresh September 6, 2024

Is this issue resolved? I am still unable to import the share-pipeline-1 to import repository, I dont see the pipeline being triggered at import repository. Please advise on how to import the share-pipeline or yaml anchor steps from export repo to import repository in bitbucket. Below example doesn't seems to work.

https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/ 

Export repository:

export: true

definitions:
  pipelines:
    share-pipeline-1:
      - step:
          name: "hello world"
          script:
            - echo hello


Import repository:

pipelines:
  custom:
    import-pipeline:
      import: shared-pipeline:main:share-pipeline-1

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2024

Hi @Veeresh

Welcome to the community.

Would you be able to confirm if both repositories are in the same workspace?

Regards,
Mark C

Veeresh September 10, 2024

Thank you Mark! yes able to import the share-pipeline now.

I was trying with {workspace-name}/{repo-slug-of-exported-pipeline}:{branch/tag-to-import-from}:{pipeline-from-exported-file} but worked just with repo name.

Can you please share some examples where we have aliases configured under definitions and yaml anchors under definitions > pipelines in exporting repo, then try those YAML anchors being called in import pipeline?

Thank you in advance!

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2024

Hi @Veeresh

Glad to know it works now.
Unfortunately, we don't have relevant examples of YAML anchors for exporting. You can try some combinations and let us know if you encounter any issues.

Regards,
Mark C

Like Veeresh likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events