fix ios diawi ipa

This commit is contained in:
Roman Volosovskyi 2018-04-01 10:21:09 +02:00
parent c9b9cf74b3
commit 7e4390ae2e
No known key found for this signature in database
GPG Key ID: 154EBFAC70C8CC3E
2 changed files with 7 additions and 4 deletions

View File

@ -65,7 +65,8 @@ node ('macos1'){
sh ('plutil -replace CFBundleVersion -string ' + build_no + ' ios/StatusIm/Info.plist')
sh 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'
sh ('security unlock-keychain -p ' + password + ' login.keychain')
sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ~/archive-release.plist'
sh 'xcodebuild -exportArchive -exportPath status_appstore -archivePath status.xcarchive -exportOptionsPlist ~/archive-release.plist'
sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ~/archive.plist'
}
}
@ -82,7 +83,8 @@ node ('macos1'){
def buildInfo = server.upload(uploadSpec)
apkUrl = 'http://artifacts.status.im:8081/artifactory/nightlies-local/' + filename
sh ('bundle exec fastlane android nightly')
//todo: handle version differently instead of exit 0
sh ('bundle exec fastlane android nightly || exit 0')
sh ('echo ARTIFACT Android: ' + apkUrl)
}
@ -93,7 +95,8 @@ node ('macos1'){
def hash = sh(returnStdout: true, script: "curl -vvv 'https://upload.diawi.com/status?token="+token+"&job="+job+"'|jq -r '.hash'").trim()
ipaUrl = 'https://i.diawi.com/' + hash
sh ('bundle exec fastlane ios nightly')
//todo: handle version differently instead of exit 0
sh ('bundle exec fastlane ios nightly || exit 0')
sh ('echo ARTIFACT iOS: ' + ipaUrl)
}
}

View File

@ -14,7 +14,7 @@ platform :ios do
desc "Deploy a new internal build to iTunes Connect"
lane :nightly do
upload_to_testflight(
ipa: "status/StatusIm.ipa"
ipa: "status_appstore/StatusIm.ipa"
)
slack(message: "New nightly build uploaded to iTunes Connect")
end