use password for the right host, run before xcodebuild
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
c70e7a48b2
commit
e8c43e2a2c
|
@ -74,14 +74,15 @@ timeout(90) {
|
|||
}
|
||||
|
||||
stage('Build (iOS)') {
|
||||
withCredentials([
|
||||
string(credentialsId: 'jenkins_pass', variable: 'password')
|
||||
]) {
|
||||
withCredentials([string(
|
||||
credentialsId: "slave-pass-${env.NODE_NAME}",
|
||||
variable: 'password'
|
||||
)]) {
|
||||
sh "plutil -replace CFBundleShortVersionString -string ${version} ios/StatusIm/Info.plist"
|
||||
sh "plutil -replace CFBundleVersion -string ${build_no} ios/StatusIm/Info.plist"
|
||||
env.RCT_NO_LAUNCH_PACKAGER = true
|
||||
sh 'xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'
|
||||
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_appstore -archivePath status.xcarchive -exportOptionsPlist ios/archive-release.plist'
|
||||
sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ios/archive-develop.plist'
|
||||
}
|
||||
|
|
|
@ -74,12 +74,15 @@ timeout(90) {
|
|||
}
|
||||
|
||||
stage('Build (iOS)') {
|
||||
withCredentials([string(credentialsId: 'jenkins_pass', variable: 'password')]) {
|
||||
withCredentials([string(
|
||||
credentialsId: "slave-pass-${env.NODE_NAME}",
|
||||
variable: 'password'
|
||||
)]) {
|
||||
sh "plutil -replace CFBundleShortVersionString -string ${version} ios/StatusIm/Info.plist"
|
||||
sh "plutil -replace CFBundleVersion -string ${build_no} ios/StatusIm/Info.plist"
|
||||
env.RCT_NO_LAUNCH_PACKAGER = true
|
||||
sh 'xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'
|
||||
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_appstore -archivePath status.xcarchive -exportOptionsPlist ios/archive-release.plist'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue