From aff20395f3a7c5a4d10721e75a497fcb55c4eef5 Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Wed, 29 Aug 2018 14:38:12 +0200 Subject: [PATCH] Jenkins: don't build unnecessary platforms for mobile builds. Signed-off-by: Eric Dvorsak --- ci/Jenkinsfile.android | 2 +- ci/Jenkinsfile.ios | 2 +- ci/mobile.groovy | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/Jenkinsfile.android b/ci/Jenkinsfile.android index 587ccb1dc8..140803abc2 100644 --- a/ci/Jenkinsfile.android +++ b/ci/Jenkinsfile.android @@ -45,7 +45,7 @@ pipeline { } stage('Build') { steps { - script { mobile.leinBuild() } + script { mobile.leinBuild('android') } } } stage('Compile') { diff --git a/ci/Jenkinsfile.ios b/ci/Jenkinsfile.ios index f2098d9214..1ba5c51516 100644 --- a/ci/Jenkinsfile.ios +++ b/ci/Jenkinsfile.ios @@ -49,7 +49,7 @@ pipeline { } stage('Build') { steps { - script { mobile.leinBuild() } + script { mobile.leinBuild('ios') } } } stage('Compile') { diff --git a/ci/mobile.groovy b/ci/mobile.groovy index e4450af2a7..3aadbadea4 100644 --- a/ci/mobile.groovy +++ b/ci/mobile.groovy @@ -29,8 +29,8 @@ def runTests() { sh 'lein test-cljs' } -def leinBuild() { - sh 'lein prod-build' +def leinBuild(platform) { + sh "lein prod-build-${platform}" } return this