2019-02-04 00:26:05 -04:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
|
|
|
|
stage('Build') {
|
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
|
|
|
stage('px4_sitl_default (OSX)') {
|
|
|
|
agent {
|
|
|
|
label 'mac'
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
CCACHE_BASEDIR = "${env.WORKSPACE}"
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'make px4_sitl_default'
|
|
|
|
sh 'ccache -s'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage px4_sitl_default
|
|
|
|
|
|
|
|
stage('px4_fmu-v5_default (OSX)') {
|
|
|
|
agent {
|
|
|
|
label 'mac'
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
CCACHE_BASEDIR = "${env.WORKSPACE}"
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'make px4_fmu-v5_default'
|
|
|
|
sh 'ccache -s'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage px4_fmu-v5_default
|
|
|
|
|
2019-02-05 12:56:12 -04:00
|
|
|
stage('sitl tests (OSX)') {
|
|
|
|
agent {
|
|
|
|
label 'mac'
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
CCACHE_BASEDIR = "${env.WORKSPACE}"
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'make tests'
|
|
|
|
sh 'ccache -s'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // stage sitl tests
|
|
|
|
|
2019-02-04 00:26:05 -04:00
|
|
|
} // parallel
|
|
|
|
} // stage Build
|
|
|
|
|
|
|
|
} // stages
|
|
|
|
environment {
|
|
|
|
CCACHE_CPP2 = '1'
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
|
|
|
}
|
|
|
|
options {
|
2019-02-24 13:13:15 -04:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '30'))
|
2019-02-08 15:09:08 -04:00
|
|
|
timeout(time: 120, unit: 'MINUTES')
|
2019-02-04 00:26:05 -04:00
|
|
|
}
|
|
|
|
}
|