From 7e4390ae2e6d4f26c796dee7e8f9adf32e6e318b Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Sun, 1 Apr 2018 10:21:09 +0200 Subject: [PATCH] fix ios diawi ipa --- Jenkinsfile.nightly_fastlane | 9 ++++++--- fastlane/Fastfile | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.nightly_fastlane b/Jenkinsfile.nightly_fastlane index e78dc7c37c..59f1c2dd72 100644 --- a/Jenkinsfile.nightly_fastlane +++ b/Jenkinsfile.nightly_fastlane @@ -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) } } diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 8a7ad93b5a..9106391755 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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