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?