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 !
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.