jenkinsfile & script: Fix passing upload track correctly
This commit is contained in:
parent
35ba1d4091
commit
67a71e2aa0
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -21,7 +21,7 @@ pipeline {
|
|||
booleanParam(name: 'SKIP_PUBLISH', defaultValue: 'true', description: 'Skip publishing apk')
|
||||
string(name: 'GIT_CREDENTIAL_ID', defaultValue: 'jenkins-jenkins-ssh-key', description: '')
|
||||
string(name: 'RELEASE_MESSAGE', defaultValue: 'Nouvelle version', description: 'A release message')
|
||||
string(name: 'ANDROID_UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track')
|
||||
string(name: 'ANDROID_UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track (internal/alpha/beta/production)')
|
||||
string(name: 'ANDROID_RELEASE_STATUS', defaultValue: 'completed', description: 'draft/completed')
|
||||
string(name: 'ANDROID_API_KEY_CREDENTIAL', defaultValue: 'jenkins-gestemps-android-service-secret-api-key', description: 'Api key to for the play store api')
|
||||
string(name: 'GIT_SSH_REMOTE_NAME', defaultValue: 'ssh://git@gitea.valuya.com:2022/Valuya/comptaplan_app.git',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
TRACK=${TRACK:-alpha}
|
||||
ANDROID_UPLOAD_TRACK=${ANDROID_UPLOAD_TRACK:-alpha}
|
||||
RELEASE_STATUS=${RELEASE_STATUS:-completed}
|
||||
RELEASE_MESSAGE="${RELEASE_MESSAGE:-New version}"
|
||||
GOOGLE_APPLICATION_CREDENTIALS="${GOOGLE_APPLICATION_CREDENTIALS:-}"
|
||||
|
@ -21,7 +21,7 @@ npm install
|
|||
npm install -g --save googleapis
|
||||
|
||||
node ${WD}/publish-android-js/publish-app-store.js \
|
||||
"$TRACK" "$VERSION_CODE" "$RELEASE_STATUS" "$VERSION_CODE $VERISON_NAME" "$RELEASE_MESSAGE" ${WD}/../build/app/outputs/bundle/release/app-release.aab \
|
||||
"$ANDROID_UPLOAD_TRACK" "$VERSION_CODE" "$RELEASE_STATUS" "$VERSION_CODE $VERISON_NAME" "$RELEASE_MESSAGE" ${WD}/../build/app/outputs/bundle/release/app-release.aab \
|
||||
|| exit 1
|
||||
|
||||
popd
|
||||
|
|
Reference in New Issue
Block a user