-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
34 lines (34 loc) · 925 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
pipeline {
agent any
stages {
stage('Build Server Image') {
steps {
sh "docker build -f Dockerfile -t onnx/aigrpc-server ."
}
}
stage('Build Debug Image') {
steps {
sh "docker build -f Dockerfile.debug -t onnx/aigrpc-debug ."
}
}
stage('utest') {
steps {
sh "docker run -v ${PWD}/results:/results onnx/aigrpc-server -c 'cd /workdir/aigrpc-server/cmake/build;./grpc-test --gtest_output=xml:/results/'"
}
}
}
post {
always {
junit './results/**'
}
success {
echo 'This will run only if successful'
}
failure {
echo 'This will run only if failed'
}
unstable {
echo 'This will run only if the run was marked as unstable'
}
}
}