Importing a pipeline as step

Ananth Sarathy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2023

I would like to be able import a pipeline as a step


the custom import below works, but I would like the ability to add the imported pipeline as a step.

 

pipelines:
custom:
import-pipeline:
import: build-tools:initial-commit:share-pipeline-1

default:
- parallel:
fail-fast: true
steps:
- step: *mavenBuild
- step:
import: build-tools:initial-commit:share-pipeline-1
- step:

2 answers

1 vote
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2024

Hi @Ananth Sarathy ,

With the release of Dynamic Pipelines you can now achieve a greater level of flexibility with the Bitbucket pipelines.

I just published this article explaining how to add a step dynamically to a repository. You'll also see that there is a greater level of flexibility with what can be achieved considering that, the app logic, can change the entire pipeline of a repository.

Hope this helps,
Caterina

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2023

Hey @Ananth Sarathy and welcome to the Community!

Currently, the shared pipelines feature only allows you to export/import the entire pipeline definition between repositories. I'm afraid it's not possible to import a single step or import the pipeline as a step (see Share Pipelines Configuration FAQ | Bitbucket Cloud).

We have a feature request opened to improve the capabilities of shared pipelines, which includes the possibility to share individual steps of a pipeline between repositories : 

We encourage you to Vote for that feature so it gets more visibility and helps our developers understand the interest. Also, you have the option to set yourself as a Watcher so you will be notified whenever there's any progress on that feature. New features are implemented based on this policy.

Thank you, @Ananth Sarathy !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events