-
Notifications
You must be signed in to change notification settings - Fork 6
/
Jenkinsfile.build
38 lines (32 loc) · 1.16 KB
/
Jenkinsfile.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pipeline {
agent any
stages {
stage('Trigger Builds') {
steps {
script {
// Sleeps are since we don't watch for end of the process, and jobs only start the process
build(job: 'angular.love/clear-bff-cache',
parameters: [
[$class: 'BooleanParameterValue', name: 'RUN_ON_DEV', value: true],
[$class: 'BooleanParameterValue', name: 'RUN_ON_PROD', value: true]
],
wait: true)
sleep(time:3,unit:"MINUTES")
build(job: 'angular.love/clear-site-cache', wait: true)
sleep(time:30,unit:"SECONDS")
build(job: 'angular.love/build-new-blog-main', wait: false)
sleep(time:20,unit:"MINUTES")
build(job: 'angular.love/clear-site-cache', wait: true)
}
}
}
}
post {
failure {
echo "Failed to trigger builds"
}
success {
echo "Successfully triggered all builds"
}
}
}