-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Jenkinsfile
59 lines (55 loc) · 1.4 KB
/
_Jenkinsfile
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
59
pipeline {
agent {
label 'dory'
}
options {
disableConcurrentBuilds()
}
triggers {
pollSCM('* * * * *')
cron('H 2 * * *')
}
environment {
WD="${env.WORKSPACE}"
GPF_UDAF_IMAGE="gpf_udaf_image${env.BRANCH_NAME}_${env.BUILD_NUMBER}"
GPF_UDAF_CONTAINER="gpf_kmpala_udaf_test${env.BRANCH_NAME}_${env.BUILD_NUMBER}"
}
stages {
stage ('Start') {
steps {
slackSend (
color: '#FFFF00',
message: "STARTED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' ${env.BUILD_URL}"
)
}
}
stage('Build UDAF devel image') {
steps {
sh '''
$WD/build_container.sh
'''
}
}
stage('Compile and run tests') {
steps {
sh '''
${WD}/run_container.sh
'''
}
}
}
post {
success {
slackSend (
color: '#00FF00',
message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' ${env.BUILD_URL}"
)
}
failure {
slackSend (
color: '#FF0000',
message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' ${env.BUILD_URL}"
)
}
}
}