Are there any working examples of Shared pipelines as the one here does not work.
https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/
I am getting this error:
There is an error in the imported bitbucket-pipelines.yml file. The error is at [line 3, column 12]. Mapping values are not allowed here
On shared:
Hi Andrew,
I believe the error occurs because there is no space between export: and true.
Could you please adjust it like below and let us know if the pipeline runs then?
export: true
I will reach out to the documentation team to fix the example.
Kind regards,Theodora
Thanks both that got me further. I am now struggling to work out how to have import and steps working beside each other. where I am importing to is below:
You may want to show also the other pipeline where you import and reuse it.
@Theodora Boudale I also notice that, but please have a look at the official example! There is no extra space in that example, either. If this is the solution, then the doc should be updated, too.
Hi Aron,
Yes, I saw that the official example is incorrect, which is why I said I would reach out to the documentation team to fix it.
What you are trying to do is not possible, you cannot have an imported pipeline with additional steps.
Thanks Theodora, I raised with support and got the same answer. Makes this very limited and a all or nothing type solution, great start though and looking forward to seeing improvments.
You are welcome, Andrew. We have a feature request for the ability to export and share individual steps (and also combine an imported step with a local step):
You can add your vote and feedback to this feature request to express your interest.
Please feel free to reach out if you need anything further.
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.
Export repository:
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
Hi @Veeresh
Let me start by welcoming you to the community.To achieve this, you'll need to use Dynamic Pipelines which allow you to add a single step (or a few) to multiple pipelines.
Here is an article explaining how to add a step, hopefully this will help you get started.Caterina
It looks like you're new here. Sign in or register to get started.