-
Notifications
You must be signed in to change notification settings - Fork 35
/
Jenkinsfile
34 lines (30 loc) · 974 Bytes
/
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
//reference: https://github.com/Pragmatists/testing-examples/blob/master/Jenkinsfile
pipeline {
agent { label 'cccxl016 || cccxl014' }
stages {
stage ('Checkout code') {
steps {
checkout scm
}
}
stage('Unit Test') {
steps {
sh '''
rm -rf test-reports/TEST-*.xml
jbsub -wait -out ccc_log.txt -queue x86_1h -mem 40g -cores "10+1" -require 'v100' ./run_all_unit_tests.sh 11.8 /dccstor/fuse_med_ml/cicd/envs/
echo "------ printing ccc_log.txt -----"
cat ./ccc_log.txt
echo "------ Done printing ccc_log.txt ------"
'''
}
}
}
post {
always {
junit 'test-reports/TEST-*.xml'
}
//failure {
//mail to: 'blah@blah.com', subject: 'The Pipeline failed :(', body:'The Pipeline failed :('
//}
}
}