diff --git a/Jenkinsfile b/Jenkinsfile index f3a3c20a0d5660db93966d022cc917921859d1a4..81c1f9b8b46f12b4ae6fe3dbe20c4cf9f56e61d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,31 @@ pipeline { stage('build') { parallel { + stage('Android Release') { + environment { + CCACHE_BASEDIR = "${env.WORKSPACE}" + QGC_CONFIG = 'release' + QMAKE_VER = "5.9.2/android_armv7/bin/qmake" + } + agent { + docker { + image 'mavlink/qgc-build-android:2018-04-14' + args '-v ${CCACHE_DIR}:${CCACHE_DIR}:rw' + } + } + steps { + sh 'export' + sh 'ccache -z' + sh 'git submodule deinit -f .' + sh 'git clean -ff -x -d .' + sh 'git submodule update --init --recursive --force' + sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn' + sh 'cd build; make -j`nproc --all`' + sh 'ccache -s' + sh 'git clean -ff -x -d .' + } + } + stage('Linux Debug') { environment { CCACHE_BASEDIR = "${env.WORKSPACE}" @@ -25,6 +50,7 @@ pipeline { sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn' sh 'cd build; make -j`nproc --all`' sh 'ccache -s' + sh 'git clean -ff -x -d .' } } @@ -49,6 +75,7 @@ pipeline { sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn' sh 'cd build; make -j`nproc --all`' sh 'ccache -s' + sh 'git clean -ff -x -d .' } } @@ -72,6 +99,7 @@ pipeline { sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn' sh 'cd build; make -j`sysctl -n hw.ncpu`' sh 'ccache -s' + sh 'git clean -ff -x -d .' } } @@ -96,6 +124,7 @@ pipeline { sh 'cd build; make -j`sysctl -n hw.ncpu`' sh 'ccache -s' archiveArtifacts(artifacts: 'build/**/*.dmg', fingerprint: true, onlyIfSuccessful: true) + sh 'git clean -ff -x -d .' } }