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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.