From a904730f194615e4c600d685179004959196b12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 13 Aug 2018 08:23:54 -0400 Subject: [PATCH] add unlocking macos keychain before xcodebuild steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 8742da2789..362dfb12ea 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -87,9 +87,15 @@ timeout(90) { // iOS stage('Build (iOS)') { - env.RCT_NO_LAUNCH_PACKAGER = true - sh 'xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive' - sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ios/archive-develop.plist' + withCredentials([string( + credentialsId: "slave-pass-${env.NODE_NAME}", + variable: 'password' + )]) { + env.RCT_NO_LAUNCH_PACKAGER = true + sh "security unlock-keychain -p ${password} login.keychain" + sh 'xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive' + sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ios/archive-develop.plist' + } } stage('Deploy (iOS)') {