Jenkins

Usage

The only required parameter for Sleuth is the **name of the Jenkins job **. Sleuth will pass any additional specified parameters to Jenkins when triggering the job in case you are using parameterised builds. See Jenkins documentation for additional informations.
This example triggers a deploy-prod job in Jenkins 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 2mo ago
Copy link