5 Star 5 Fork 4

Slightech / MYNT-EYE-D-SDK

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile 2.16 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
John Zhao 提交于 2018-12-04 15:41 . Change install prefix on linux
pipeline {
agent {
// docker { image 'ros:kinetic-ros-base-xenial' }
docker { image 'joinaero/kinetic-ros-opencv-xenial' }
}
stages {
stage('Prepare') {
steps {
echo "WORKSPACE: ${env.WORKSPACE}"
echo 'apt-get ..'
sh 'apt-get update'
}
}
stage('Init') {
steps {
echo 'make init ..'
sh 'make init INIT_OPTIONS=-y'
}
}
stage('Build') {
steps {
echo 'make build ..'
sh '. /opt/ros/kinetic/setup.sh; make build'
}
}
stage('Install') {
steps {
echo 'make install ..'
sh '. /opt/ros/kinetic/setup.sh; make install SUDO='
}
}
/*
stage('Test') {
steps {
echo 'make test ..'
sh '. /opt/ros/kinetic/setup.sh; make test SUDO='
}
}
*/
stage('Samples') {
steps {
echo 'make samples ..'
sh '''
apt-get install -y libasound2-dev
. /opt/ros/kinetic/setup.sh; make samples SUDO=
'''
}
}
stage('Tools') {
steps {
echo 'make tools ..'
sh '. /opt/ros/kinetic/setup.sh; make tools SUDO='
}
}
stage('ROS') {
steps {
echo 'make ros ..'
sh '''
. /opt/ros/kinetic/setup.sh
rosdep install --from-paths wrappers/ros/src --ignore-src --rosdistro kinetic -y
make ros SUDO=
'''
}
}
/*
stage('Clean') {
steps {
echo 'clean ..'
sh '''
rm -rf /var/lib/apt/lists/*
'''
}
}
*/
}
post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
}
failure {
echo 'This will run only if failed'
mail to: 'mynteye-ci@slightech.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
unstable {
echo 'This will run only if the run was marked as unstable'
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
}
}
}
1
https://gitee.com/mynt/MYNT-EYE-D-SDK.git
git@gitee.com:mynt/MYNT-EYE-D-SDK.git
mynt
MYNT-EYE-D-SDK
MYNT-EYE-D-SDK
master

搜索帮助

14c37bed 8189591 565d56ea 8189591