Revert "Use android debug build for PR branches"

This reverts commit 06789a862b.

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2018-05-24 11:02:11 +02:00
parent faddabbf74
commit f38ffff7e1
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 2 additions and 3 deletions

5
Jenkinsfile vendored
View File

@ -55,13 +55,12 @@ timeout(90) {
// Android // Android
stage('Build (Android)') { stage('Build (Android)') {
sh 'node --expose-gc --max_old_space_size=4096 ./node_modules/react-native/local-cli/cli.js bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/debug/res' sh 'cd android && ./gradlew assembleRelease'
sh 'cd android && ./gradlew assembleDebug'
} }
stage('Deploy (Android)') { stage('Deploy (Android)') {
withCredentials([string(credentialsId: 'diawi-token', variable: 'token'), string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')] ) { withCredentials([string(credentialsId: 'diawi-token', variable: 'token'), string(credentialsId: 'GIT_HUB_TOKEN', variable: 'githubToken')] ) {
def job = sh(returnStdout: true, script: 'curl https://upload.diawi.com/ -F token='+token+' -F file=@android/app/build/outputs/apk/debug/app-debug.apk -F find_by_udid=0 -F wall_of_apps=0 | jq -r ".job"').trim() def job = sh(returnStdout: true, script: 'curl https://upload.diawi.com/ -F token='+token+' -F file=@android/app/build/outputs/apk/release/app-release.apk -F find_by_udid=0 -F wall_of_apps=0 | jq -r ".job"').trim()
sh 'sleep 10' sh 'sleep 10'
def hash = sh(returnStdout: true, script: "curl -vvv 'https://upload.diawi.com/status?token="+token+"&job="+job+"'|jq -r '.hash'").trim() def hash = sh(returnStdout: true, script: "curl -vvv 'https://upload.diawi.com/status?token="+token+"&job="+job+"'|jq -r '.hash'").trim()
apkUrl = 'https://i.diawi.com/' + hash apkUrl = 'https://i.diawi.com/' + hash