Hi,
So I followed this article: https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/ and also checked out this question https://community.atlassian.com/forums/Bitbucket-questions/Shared-Pipeline-error/qaq-p/2970688
I basically have a repository called `shared-pipelines` with a file `shared-pipelines.yml`. The content is
export: true definitions: pipelines: share-pipeline-2: - step: name: "hello world" script: - echo hello
definitions: imports: shared-pipelines-custom: shared-pipelines:master:.bitbucket/shared-pipelines.yml pipelines: branches: 'my-feature-branch': - import: share-pipeline-2@shared-pipelines-custom
Issue was that apparently the documentation is wrong.
https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/ states you should use
shared-pipelines-custom: shared-pipelines:master:.bitbucket/shared-pipelines.yml
for custom custom names. Apparently
shared-pipelines-custom: shared-pipelines:master:shared-pipelines.yml
is correct
My tips:
Fund it out. The documentation is simply wrong.using
shared-pipelines:master:shared-pipelines.yml
instead of
shared-pipelines:master:.bitbucket/shared-pipelines.yml
makes it work.
It looks like you're new here. Sign in or register to get started.