-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
45 lines (45 loc) · 1.35 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
#!groovy
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
additionalBuildArgs '--no-cache'
args '-u root --entrypoint=""'
}
}
stages {
stage('Build') {
steps {
sh '''
cd /workspace/catkin_ws
/ros_entrypoint.sh catkin build --no-status
'''
}
}
stage('Test') {
steps {
sh '''
echo "Sourcing /workspace/catkin_ws/devel/setup.sh silently"
set +x
. /workspace/catkin_ws/devel/setup.sh
set -x
cd /workspace/catkin_ws/src/yaml_common
catkin test --this --no-status
'''
sh '''
mkdir -p test_results
cp /workspace/catkin_ws/build/yaml_common/test_results/yaml_common/gtest-yaml_common_test.xml ./test_results/
'''
}
}
}
post {
always {
archiveArtifacts artifacts: 'test_results/*.xml', fingerprint: true
xunit (
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
tools: [ GoogleTest(pattern: 'test_results/*.xml') ]
)
}
}
}