Forums

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

Shared pipeline is not triggered pipeline

Indra Rizky
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!
June 24, 2025

I’m having difficulty importing a pipeline from another repository. I’ve checked it using the validator and it’s valid, but when I push to the development branch, no pipeline is triggered.

I need the pipeline to be triggered when I merge a pull request into the development branch, and the same goes for the production branch.

 

here's my shared pipeline 

export: true


definitions:
  pipelines:
    share-pipeline-1:
      - step: &build-and-push
        name: Build and test
        image: docker:20.10.16
        services:
          - docker
        caches:
          - docker
        script:
          - docker version
and this is my bitbucket pipeline in my repo
pipelines:
  custom:
    importing-pipeline:
      import: projectname/shared-pipeline-config:main:share-pipeline-1
Screenshot 2025-06-25 110727.png

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2025

Hi @Indra Rizky 

The reason that it's not triggering on a branch push, is because you have defined the shared pipeline using the custom tag. This means the pipeline will only run when manually triggered (via the UI or API), not automatically on branch pushes or merges.

 

To trigger a pipeline automatically when you merge into development or production, you need to define the import under the branches section:

 

pipelines:
  branches:
    development:
      import: projectname/shared-pipeline-config:main:share-pipeline-1
    production:
      import: projectname/shared-pipeline-config:main:share-pipeline-1

This will ensure the pipeline runs on any push (including merges) to those branches.

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Indra Rizky
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!
June 26, 2025

hi @Ben , thanks for the answer

i already tried it, now pipeline was triggered but somehow the pipeline shows error

Screenshot 2025-06-26 145054.png

Screenshot 2025-06-26 144912.pngScreenshot 2025-06-26 144634.png

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2025

Hi @Indra Rizky 

To investigate this further - we need access to your workspace, including your YAML configuration and build environment/build logs.

To do so - we will need you to raise a support ticket with our support team using your Premium workspace URL:

Please let me know if you encounter any issues raising a ticket, and I will raise one on your behalf.

Cheers!

- Ben (Bitbucket Cloud Support)

Indra Rizky
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!
June 26, 2025

hi @Ben
yes thank you, i dont mind if you help me create ticket for this issue

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2025

Sure thing @Indra Rizky 

May I know your timezone and working hours? I have noticed with past support tickets that you have raised these around 2-3 am (GMT+10), so I want to make sure that you receive support from the region that works within your typical hours.

Cheers!

- Ben (Bitbucket Cloud Support)

Indra Rizky
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!
June 27, 2025

hi @ben 

my timezone is Asia/Jakarta, my working hours is around 9am - 6pm (GMT+7)

Suggest an answer

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

Atlassian Community Events