Bitbucket Pipelines

Usage

The only required parameter for Sleuth is the name of the pipeline specified in your./bitbucket-pipelines.yml file. Sleuth will pass any additional specified parameters to Bitbucket API when triggering the build in case your workflow requires additional input parameters. See Bitbucket Pipelines documentation for additional informations.
This example triggers a deploy-prod pipeline in Bitbucket when code is deployed to the "Staging" environment for more than 4 hours and is healthy:
1
rules:
2
- run-deploy:
3
conditions:
4
- environment='Staging'
5
- deployed_for>'4h'
6
- health='Healthy'
7
actions:
8
- trigger_build:
9
parameters:
10
name: 'deploy-prod'
11
my-custom-non-required-param: 'we are going live'
Copied!
Last modified 5mo ago
Copy link