add unlocking macos keychain before xcodebuild steps

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-08-13 08:23:54 -04:00
parent c5fc619eff
commit a904730f19
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 9 additions and 3 deletions

12
ci/Jenkinsfile vendored
View File

@ -87,9 +87,15 @@ timeout(90) {
// iOS // iOS
stage('Build (iOS)') { stage('Build (iOS)') {
env.RCT_NO_LAUNCH_PACKAGER = true withCredentials([string(
sh 'xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive' credentialsId: "slave-pass-${env.NODE_NAME}",
sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ios/archive-develop.plist' 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)') { stage('Deploy (iOS)') {