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 hellodefinitions:
imports:
shared-pipelines-custom: shared-pipelines:master:.bitbucket/shared-pipelines.yml
pipelines:
branches:
'my-feature-branch':
- import: share-pipeline-2@shared-pipelines-customIssue 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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.