Skip to content

Commit 8b1e7f5

Browse files
feat: one job build (#341)
1 parent ba7ce9d commit 8b1e7f5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Jenkinsfile.build

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

0 commit comments

Comments
 (0)