Commit 17904eed authored by Daniel Agar's avatar Daniel Agar

Jenkins OSX installer build and archive

parent 32716b43
...@@ -3,6 +3,7 @@ pipeline { ...@@ -3,6 +3,7 @@ pipeline {
stages { stages {
stage('build') { stage('build') {
parallel { parallel {
stage('Linux Debug') { stage('Linux Debug') {
environment { environment {
CCACHE_BASEDIR = "${env.WORKSPACE}" CCACHE_BASEDIR = "${env.WORKSPACE}"
...@@ -26,6 +27,7 @@ pipeline { ...@@ -26,6 +27,7 @@ pipeline {
sh 'ccache -s' sh 'ccache -s'
} }
} }
stage('Linux Release') { stage('Linux Release') {
environment { environment {
CCACHE_BASEDIR = "${env.WORKSPACE}" CCACHE_BASEDIR = "${env.WORKSPACE}"
...@@ -49,6 +51,7 @@ pipeline { ...@@ -49,6 +51,7 @@ pipeline {
sh 'ccache -s' sh 'ccache -s'
} }
} }
stage('OSX Debug') { stage('OSX Debug') {
agent { agent {
node { node {
...@@ -71,6 +74,7 @@ pipeline { ...@@ -71,6 +74,7 @@ pipeline {
sh 'ccache -s' sh 'ccache -s'
} }
} }
stage('OSX Release') { stage('OSX Release') {
agent { agent {
node { node {
...@@ -79,7 +83,7 @@ pipeline { ...@@ -79,7 +83,7 @@ pipeline {
} }
environment { environment {
CCACHE_BASEDIR = "${env.WORKSPACE}" CCACHE_BASEDIR = "${env.WORKSPACE}"
QGC_CONFIG = 'release' QGC_CONFIG = 'installer'
QMAKE_VER = "5.9.3/clang_64/bin/qmake" QMAKE_VER = "5.9.3/clang_64/bin/qmake"
} }
steps { steps {
...@@ -91,14 +95,23 @@ pipeline { ...@@ -91,14 +95,23 @@ pipeline {
sh 'mkdir build; cd build; ${QT_PATH}/${QMAKE_VER} -r ${WORKSPACE}/qgroundcontrol.pro CONFIG+=${QGC_CONFIG} CONFIG+=WarningsAsErrorsOn' 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 'cd build; make -j`sysctl -n hw.ncpu`'
sh 'ccache -s' sh 'ccache -s'
archiveArtifacts(artifacts: 'build/**/*.dmg', fingerprint: true, onlyIfSuccessful: true)
} }
} }
} }
} }
} }
environment { environment {
CCACHE_CPP2 = '1' CCACHE_CPP2 = '1'
CCACHE_DIR = '/tmp/ccache' CCACHE_DIR = '/tmp/ccache'
QT_FATAL_WARNINGS = '1' QT_FATAL_WARNINGS = '1'
} }
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '30'))
timeout(time: 60, unit: 'MINUTES')
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment