Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Shared pipelines - how to use multiple steps

shainegordon
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!
August 17, 2025

As referenced here https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/ , I'm able to import and use a custom manually triggered step in our pipeline

pipelines:
custom:
create-master-to-develop-pr:
import: automation-scripts:master:create-master-to-develop-pr
create-release-branch-and-pr-into-master:
import: automation-scripts:master:create-release-branch-and-pr-into-master
intent-architect-ensure-no-outstanding-changes:
import: automation-scripts:master:intent-architect-ensure-no-outstanding-changes

this works great.

 

however, I want to also use these in branch specific steps

 

e.g.

branches:
'{develop}':
- step: *deployDev
- step:
import: automation-scripts:master:intent-architect-ensure-no-outstanding-changes


the bitbucket-pipeline.yml validator says this is "valid", but when these is executed, there we get an error

 

`No commands or pipes defined for the step at [pipelines > branches > {develop} > 1 > step]. Check that you have defined a valid "script" section.`

 

 

This is how our shared pipeline is defined:

 

export: true

definitions:
pipelines:
intent-architect-ensure-no-outstanding-changes: &intent-architect-ensure-no-outstanding-changes
- step:
name: Intent Architect CLI - ensure-no-outstanding-changes
image: mcr.microsoft.com/dotnet/sdk:9.0
caches:
- dotnetcore
script:
- dotnet tool install Intent.SoftwareFactory.CLI --global
- export PATH=$PATH:/root/.dotnet/tools
- intent-cli ensure-no-outstanding-changes $INTENT_USERNAME $INTENT_PASSWORD ./intent




Is it possible to do what I want?
Share steps on custom pipelines, and also as additional steps in branch piplines?

0 answers

Suggest an answer

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

Atlassian Community Events