2017-10-27 11:47:38 -03:00
|
|
|
pipeline {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent none
|
2017-10-27 11:47:38 -03:00
|
|
|
stages {
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-03-30 11:05:13 -03:00
|
|
|
stage('Style Check') {
|
|
|
|
agent {
|
|
|
|
docker { image 'px4io/px4-dev-base:2017-12-30' }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'make submodulesclean'
|
|
|
|
sh 'make check_format'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-30 11:20:23 -03:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2017-11-28 13:32:26 -04:00
|
|
|
script {
|
|
|
|
def builds = [:]
|
|
|
|
|
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// nuttx default targets that are archived and uploaded to s3
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["px4fmu-v4", "px4fmu-v4pro", "px4fmu-v5", "aerofc-v1"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-11-28 13:32:26 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-06 20:32:09 -04:00
|
|
|
sh "ccache -z"
|
2017-12-08 00:50:47 -04:00
|
|
|
sh "git fetch --tags"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "make nuttx_${node_name}_default"
|
2018-03-22 14:42:24 -03:00
|
|
|
// bloaty output and compare with last successful master
|
|
|
|
sh "bloaty -n 100 -d symbols -s file build/nuttx_${node_name}_default/nuttx_${node_name}_default.elf"
|
|
|
|
sh "bloaty -n 100 -d compileunits -s file build/nuttx_${node_name}_default/nuttx_${node_name}_default.elf"
|
|
|
|
sh "wget --no-verbose -N https://s3.amazonaws.com/px4-travis/Firmware/master/nuttx_${node_name}_default.elf"
|
|
|
|
sh "bloaty -d symbols -C full -s file build/nuttx_${node_name}_default/nuttx_${node_name}_default.elf -- nuttx_${node_name}_default.elf"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_${node_name}_rtps"
|
2017-12-10 14:50:30 -04:00
|
|
|
sh "make sizes"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "ccache -s"
|
2017-12-10 03:32:21 -04:00
|
|
|
archiveArtifacts(artifacts: 'build/*/*.px4', fingerprint: true)
|
2018-03-04 15:30:29 -04:00
|
|
|
archiveArtifacts(artifacts: 'build/*/*.elf', fingerprint: true)
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// special case for fmu-v2/fmu-v3
|
|
|
|
builds["px4fmu-v2"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-12-10 03:32:21 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "ccache -z"
|
|
|
|
sh "git fetch --tags"
|
2017-12-15 11:49:00 -04:00
|
|
|
sh "make px4io-v2_default"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_px4fmu-v2_default"
|
2018-03-22 14:42:24 -03:00
|
|
|
// bloaty output and compare with last successful master
|
|
|
|
sh "bloaty -n 100 -d symbols -s file build/nuttx_px4fmu-v2_default/nuttx_px4fmu-v2_default.elf"
|
|
|
|
sh "bloaty -n 100 -d compileunits -s file build/nuttx_px4fmu-v2_default/nuttx_px4fmu-v2_default.elf"
|
|
|
|
sh "wget --no-verbose -N https://s3.amazonaws.com/px4-travis/Firmware/master/nuttx_px4fmu-v2_default.elf"
|
|
|
|
sh "bloaty -d symbols -C full -s file build/nuttx_px4fmu-v2_default/nuttx_px4fmu-v2_default.elf -- nuttx_px4fmu-v2_default.elf"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_px4fmu-v2_lpe"
|
|
|
|
sh "make nuttx_px4fmu-v3_default"
|
|
|
|
sh "make nuttx_px4fmu-v3_rtps"
|
2017-12-10 14:50:30 -04:00
|
|
|
sh "make sizes"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "ccache -s"
|
|
|
|
archiveArtifacts(artifacts: 'build/*/*.px4', fingerprint: true)
|
2018-03-04 15:30:29 -04:00
|
|
|
archiveArtifacts(artifacts: 'build/*/*.elf', fingerprint: true)
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// nuttx default targets that are archived and uploaded to s3
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["aerocore2", "auav-x21", "crazyflie", "mindpx-v2", "nxphlite-v3", "tap-v1"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-11-28 13:32:26 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-06 20:32:09 -04:00
|
|
|
sh "ccache -z"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "git fetch --tags"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "make nuttx_${node_name}_default"
|
2017-12-10 14:50:30 -04:00
|
|
|
sh "make sizes"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "ccache -s"
|
2017-12-10 03:32:21 -04:00
|
|
|
archiveArtifacts(artifacts: 'build/*/*.px4', fingerprint: true)
|
2018-03-04 15:30:29 -04:00
|
|
|
archiveArtifacts(artifacts: 'build/*/*.elf', fingerprint: true)
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 18:32:55 -04:00
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// other nuttx default targets
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["px4-same70xplained-v1", "px4-stm32f4discovery", "px4cannode-v1", "px4esc-v1", "px4nucleoF767ZI-v1", "s2740vc-v1"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-11-28 18:32:55 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-nuttx:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-11-28 18:32:55 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-06 20:32:09 -04:00
|
|
|
sh "ccache -z"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_${node_name}_default"
|
2017-12-10 14:50:30 -04:00
|
|
|
sh "make sizes"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "ccache -s"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
|
2017-12-15 14:20:57 -04:00
|
|
|
// posix_sitl
|
|
|
|
for (def option in ["sitl_default", "sitl_rtps"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-base:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-12-15 14:20:57 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-15 14:20:57 -04:00
|
|
|
sh "ccache -z"
|
|
|
|
sh "make posix_${node_name}"
|
|
|
|
sh "ccache -s"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// raspberry pi and bebop (armhf)
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["rpi_cross", "bebop_default"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-raspi:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-11-28 13:32:26 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-06 20:32:09 -04:00
|
|
|
sh "ccache -z"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "make posix_${node_name}"
|
|
|
|
sh "ccache -s"
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// other armhf (to be merged with raspi and bebop)
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["ocpoc_ubuntu"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-armhf:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-11-28 13:32:26 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-06 20:32:09 -04:00
|
|
|
sh "ccache -z"
|
2017-11-28 18:32:55 -04:00
|
|
|
sh "make posix_${node_name}"
|
|
|
|
sh "ccache -s"
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-06 08:04:01 -04:00
|
|
|
|
2017-12-10 04:27:48 -04:00
|
|
|
// snapdragon eagle (posix + qurt)
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["eagle_default"]) {
|
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-12-10 04:27:48 -04:00
|
|
|
builds["${node_name}"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name}") {
|
|
|
|
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_dagar') {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image("lorenzmeier/px4-dev-snapdragon:2017-12-29").inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-12-10 04:27:48 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-10 04:27:48 -04:00
|
|
|
sh "ccache -z"
|
|
|
|
sh "make ${node_name}"
|
|
|
|
sh "ccache -s"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-15 10:55:34 -04:00
|
|
|
// GCC7 posix
|
|
|
|
for (def option in ["sitl_default"]) {
|
2017-12-10 14:50:30 -04:00
|
|
|
def node_name = "${option}"
|
|
|
|
|
2017-12-06 08:04:01 -04:00
|
|
|
builds["${node_name} (GCC7)"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test ${node_name} (GCC7)") {
|
2018-02-05 15:08:27 -04:00
|
|
|
docker.image('px4io/px4-dev-base-archlinux:2017-12-30').inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
2017-12-06 08:04:01 -04:00
|
|
|
stage("${node_name}") {
|
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "ccache -z"
|
2017-12-15 10:55:34 -04:00
|
|
|
sh "make posix_${node_name}"
|
|
|
|
sh "ccache -s"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
parallel builds
|
|
|
|
}
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('Test') {
|
2017-10-30 11:20:23 -03:00
|
|
|
parallel {
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-12-15 10:59:15 -04:00
|
|
|
stage('clang analyzer') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-01-01 10:59:22 -04:00
|
|
|
image 'px4io/px4-dev-clang:2017-12-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:59:15 -04:00
|
|
|
sh 'make scan-build'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'clang static analyzer',
|
2017-12-15 10:59:15 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 10:59:15 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/scan-build/report_latest',
|
2017-12-15 10:59:15 -04:00
|
|
|
reportFiles: '*',
|
|
|
|
reportName: 'Clang Static Analyzer'
|
|
|
|
]
|
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
|
|
|
}
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
|
2017-12-15 10:46:38 -04:00
|
|
|
stage('clang tidy') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-01-01 10:59:22 -04:00
|
|
|
image 'px4io/px4-dev-clang:2017-12-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:46:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:46:38 -04:00
|
|
|
sh 'make clang-tidy-quiet'
|
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-12-15 11:34:24 -04:00
|
|
|
stage('cppcheck') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-base:ubuntu17.10'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 11:34:24 -04:00
|
|
|
sh 'make cppcheck'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'Cppcheck',
|
2017-12-15 11:34:24 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 11:34:24 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/cppcheck/',
|
2017-12-15 11:34:24 -04:00
|
|
|
reportFiles: '*',
|
2017-12-15 11:53:55 -04:00
|
|
|
reportName: 'Cppcheck'
|
2017-12-15 11:34:24 -04:00
|
|
|
]
|
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
|
|
|
}
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('tests') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-01-01 10:59:22 -04:00
|
|
|
image 'px4io/px4-dev-base:2017-12-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
2017-10-30 11:20:23 -03:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-11-28 18:32:55 -04:00
|
|
|
sh 'make posix_sitl_default test_results_junit'
|
2017-11-28 13:32:26 -04:00
|
|
|
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission new 1') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_1 vehicle:=standard_vtol'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission new 2') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_2 vehicle:=standard_vtol'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission old 1') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_old_1 vehicle:=standard_vtol'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission old 2') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_old_2 vehicle:=standard_vtol'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission old 3') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-02-14 20:34:08 -04:00
|
|
|
//sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
|
|
|
//sh 'git fetch --tags'
|
|
|
|
//sh 'make posix_sitl_default'
|
|
|
|
//sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
//sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_old_3 vehicle:=standard_vtol'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
//always {
|
|
|
|
// sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-14 20:34:08 -04:00
|
|
|
//}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS MC mission box') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
2018-03-01 12:56:21 -04:00
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=multirotor_box vehicle:=iris'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS offboard att') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_tests_offboard_attctl.test'
|
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS offboard pos') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2017-12-31 19:21:47 -04:00
|
|
|
image 'px4io/px4-dev-ros:2017-12-31'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
2018-01-02 16:07:16 -04:00
|
|
|
sh 'git fetch --tags'
|
2017-12-10 21:19:03 -04:00
|
|
|
sh 'make posix_sitl_default'
|
|
|
|
sh 'make posix_sitl_default sitl_gazebo'
|
|
|
|
sh './test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test'
|
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
|
|
|
sh './Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('Generate Metadata') {
|
2017-12-10 03:32:21 -04:00
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
|
|
|
stage('airframe') {
|
|
|
|
agent {
|
2018-01-01 10:59:22 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2017-12-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make airframe_metadata'
|
|
|
|
archiveArtifacts(artifacts: 'airframes.md, airframes.xml', fingerprint: true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('parameter') {
|
|
|
|
agent {
|
2018-01-01 10:59:22 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2017-12-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make parameters_metadata'
|
|
|
|
archiveArtifacts(artifacts: 'parameters.md, parameters.xml', fingerprint: true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('module') {
|
|
|
|
agent {
|
2018-01-01 10:59:22 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2017-12-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make module_documentation'
|
|
|
|
archiveArtifacts(artifacts: 'modules/*.md', fingerprint: true)
|
|
|
|
}
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
|
|
|
|
stage('uorb graphs') {
|
|
|
|
agent {
|
2018-01-05 23:57:17 -04:00
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-nuttx:2017-12-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2018-01-05 23:57:17 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2018-01-05 18:20:39 -04:00
|
|
|
sh 'make uorb_graphs'
|
|
|
|
archiveArtifacts(artifacts: 'Tools/uorb_graph/graph_sitl.json')
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
stage('S3 Upload') {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent {
|
2018-01-01 10:59:22 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2017-12-30' }
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
when {
|
2017-12-10 03:32:21 -04:00
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
2017-10-30 16:05:37 -03:00
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
steps {
|
|
|
|
sh 'echo "uploading to S3"'
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
2018-02-05 15:08:27 -04:00
|
|
|
environment {
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
options {
|
2018-03-30 11:17:07 -03:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '2', artifactDaysToKeepStr: '30'))
|
2017-12-10 03:32:21 -04:00
|
|
|
timeout(time: 60, unit: 'MINUTES')
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
2017-11-05 16:04:14 -04:00
|
|
|
}
|