From 0ac1092ba2b42cb2739b23592d0d3bdac4f81b13 Mon Sep 17 00:00:00 2001 From: Paul Puey Date: Wed, 5 Jul 2023 15:33:05 -0700 Subject: [PATCH] Add ios simulator build --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 86235235ef9..e9593e33a4a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,17 @@ def buildProduction(String stageName) { } } +def buildSim(String stageName) { + stage("Build Sim ${stageName}") { + if (env.BRANCH_NAME in ['develop', 'staging', 'master', 'beta', 'testMaestro']) { + if (stageName == 'ios' && params.IOS_BUILD_SIM) { + sh 'npm run prepare.ios' + sh "node -r sucrase/register ./scripts/deploy.ts edge ios ${BRANCH_NAME} sim" + } + } + } +} + pipeline { agent none tools { @@ -57,6 +68,7 @@ pipeline { parameters { booleanParam(name: 'ANDROID_BUILD', defaultValue: true, description: 'Build an Android version') booleanParam(name: 'IOS_BUILD', defaultValue: true, description: 'Build an iOS version') + booleanParam(name: 'IOS_BUILD_SIM', defaultValue: true, description: 'Build an iOS simulator version') booleanParam(name: 'VERBOSE', defaultValue: false, description: 'Complete build log output') } environment { @@ -76,6 +88,15 @@ pipeline { } } } + stage('IOS Simulator Build') { + agent { label 'ios-build-sim' } + steps { + script { + preBuildStages('IOS Simulator') + buildSim('ios') + } + } + } stage('Android Build') { agent { label 'android-build' } steps {