-
Notifications
You must be signed in to change notification settings - Fork 1
/
Builder.Jenkinsfile.groovy
58 lines (44 loc) · 1.77 KB
/
Builder.Jenkinsfile.groovy
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (C) Activision Publishing, Inc. 2017
// https://github.com/Demonware/harbor-analytics
// Author: David Rieger
// Licensed under the 3-Clause BSD License (the "License");
// you may not use this file except in compliance with the License.
pipeline {
agent {
label 'microagent'
}
post {
failure {
echoFailure("Pipeline Failed.")
slackFailure(
'channel',
'Harbor Analyst (Builder)',
"Build #${env.BUILD_NUMBER} for building harbor-analyst failed." +
" Build: ${env.BUILD_URL}"
)
}
success {
echoSuccess("Pipeline Succeeded.")
slackSuccess(
'channel',
'Harbor Analyst (Builder)',
"Build #${env.BUILD_NUMBER} for building harbor-analyst succeeded." +
" Build: ${env.BUILD_URL}"
)
}
}
stages {
stage('Build Data Fetcher and Analyst (Parallel)') {
steps {
parallel(
build_data_fetcher: {
sh 'make build-raw-data-fetcher'
},
build_analyst: {
sh 'make build'
}
)
}
}
}
}