Missed Team ’24? Catch up on announcements here.

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

trigger another webhook from bitbucket pipeline

Erik Roosemeyers
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!
April 23, 2018

Hi all,

 

is this scenario possible in bitbucket ?

 

on push event on repository -> start a bitbucket pipeline (which only does an integration test, eg. npm test) -> on success: trigger another webhook in same repository (this one is a call to external system which deploys the application).

(for "triggering" the second webhook I was thinking of the "Build status updated" event which is triggered by the bitbucket pipeline...but didn't find any docs or approaches yet)

 

anybody hints/directions ? thx !

1 answer

0 votes
SebC
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2018

You won't be able to trigger pipelines from running pipelines (to prevent infinite loops), but you might be able to get the desired effect using serial steps.

The second step will only run after the first step completes successfully.

 

pipelines:
  default:
    - step:
name: Build and test script: - ./build.sh - step:
name: Deploy
deployment: production # Using bitbucket deployment tracking * script: - ./deploy.sh

* more details on  Bitbucket deployments at: https://confluence.atlassian.com/bitbucket/bitbucket-deployments-940695276.html 

 

Hope that helps,

Seb

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events