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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Shared pipelines

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:

 

export:true

definitions:
  pipelines:
    hello-world:
      - step:
          name: "hello world"
          script:
            - echo hello

3 answers

2 accepted

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 06, 2023

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

Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 06, 2023

@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.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 06, 2023

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. :)

Kind regards,
Theodora

Like Aron Gombas _Midori_ likes this
1 vote
Answer accepted

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:

 

  default:
    import: shared-pipeline:main:hello-world
    - step: *software_versions
But does not like me mixing the two beside each other, any ideas of what to do?
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 10, 2023

Hi Andrew,

What you are trying to do is not possible, you cannot have an imported pipeline with additional steps.

Kind regards,
Theodora

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.

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 11, 2023

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.

Kind regards,
Theodora

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 06, 2023

You may want to show also the other pipeline where you import and reuse it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events