Franka_ROS2/Jenkinsfile

50 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2023-08-30 13:50:48 +00:00
pipeline {
agent {
dockerfile true
}
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage('Init') {
steps {
script {
notifyBitbucket()
}
sh 'rm -rf build log install'
}
}
stage('Build') {
steps {
sh '''
. /opt/ros/humble/setup.sh
colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCHECK_TIDY=ON
'''
}
}
stage('Test') {
steps {
sh '''
. /opt/ros/humble/setup.sh
. install/setup.sh
colcon test
colcon test-result
'''
}
post {
always {
junit 'build/**/test_results/**/*.xml'
}
}
}
}
post {
always {
cleanWs()
script {
notifyBitbucket()
}
}
}
}