Update jenkinsfile

This commit is contained in:
John Zhao 2018-10-29 12:08:19 +08:00
parent e95a5e6b1d
commit 3d38b43d04

11
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent { agent {
// docker { image 'ros:kinetic-ros-core-xenial' } // docker { image 'ros:kinetic-ros-base-xenial' }
docker { image 'ros:kinetic-ros-base-xenial' } docker { image 'joinaero/kinetic-ros-opencv-xenial' }
} }
/* /*
@ -16,10 +16,7 @@ pipeline {
steps { steps {
echo "WORKSPACE: ${env.WORKSPACE}" echo "WORKSPACE: ${env.WORKSPACE}"
echo 'apt-get ..' echo 'apt-get ..'
sh ''' sh 'apt-get update'
apt-get update
apt-get install -y ros-kinetic-opencv3
'''
} }
} }
stage('Init') { stage('Init') {
@ -91,7 +88,7 @@ pipeline {
} }
failure { failure {
echo 'This will run only if failed' echo 'This will run only if failed'
mail to: 'mynteye@slightech.com', mail to: 'mynteye-ci@slightech.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}" body: "Something is wrong with ${env.BUILD_URL}"
} }