From 17904eedd4370f7f34ebdb53b9b75db0a05d5138 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 14 Apr 2018 13:23:23 -0400 Subject: [PATCH] Jenkins OSX installer build and archive --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6054eea3a..f3a3c20a0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,6 +3,7 @@ pipeline { stages { stage('build') { parallel { + stage('Linux Debug') { environment { CCACHE_BASEDIR = "${env.WORKSPACE}" @@ -26,6 +27,7 @@ pipeline { sh 'ccache -s' } } + stage('Linux Release') { environment { CCACHE_BASEDIR = "${env.WORKSPACE}" @@ -49,6 +51,7 @@ pipeline { sh 'ccache -s' } } + stage('OSX Debug') { agent { node { @@ -71,6 +74,7 @@ pipeline { sh 'ccache -s' } } + stage('OSX Release') { agent { node { @@ -79,7 +83,7 @@ pipeline { } environment { CCACHE_BASEDIR = "${env.WORKSPACE}" - QGC_CONFIG = 'release' + QGC_CONFIG = 'installer' QMAKE_VER = "5.9.3/clang_64/bin/qmake" } steps { @@ -91,14 +95,23 @@ 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' + archiveArtifacts(artifacts: 'build/**/*.dmg', fingerprint: true, onlyIfSuccessful: true) } } + } } } + environment { CCACHE_CPP2 = '1' CCACHE_DIR = '/tmp/ccache' QT_FATAL_WARNINGS = '1' } + + options { + buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '30')) + timeout(time: 60, unit: 'MINUTES') + } + } -- 2.22.0