style: Fix indentation of Android build and deploy stage in Jenkinsfile

This commit is contained in:
Van Leemput Dayron
2025-12-08 17:08:35 +01:00
parent 7d38f54123
commit 9734532491

41
Jenkinsfile vendored
View File

@@ -30,28 +30,29 @@ pipeline {
} }
stage('Build & Deploy Android') { stage('Build & Deploy Android') {
steps { steps {
withCredentials([ withCredentials([
file(credentialsId: 'android-keystore-file', variable: 'KEYSTORE_PATH'), file(credentialsId: 'android-keystore-file', variable: 'KEYSTORE_PATH'),
file(credentialsId: 'google-play-json', variable: 'GOOGLE_JSON'), file(credentialsId: 'google-play-json', variable: 'GOOGLE_JSON'),
// 1. On récupère le fichier .env stocké dans Jenkins // 1. On récupère le fichier .env stocké dans Jenkins
file(credentialsId: 'flutter-env-file', variable: 'ENV_FILE_REF') file(credentialsId: 'flutter-env-file', variable: 'ENV_FILE_REF')
]) { ]) {
script { script {
// 2. On copie le fichier secret vers la racine du workspace sous le nom ".env" // 2. On copie le fichier secret vers la racine du workspace sous le nom ".env"
sh 'cp $ENV_FILE_REF .env' sh 'cp $ENV_FILE_REF .env'
// ... Votre code existant pour key.properties ... // ... Votre code existant pour key.properties ...
sh """ sh """
echo storePassword=$STORE_PASS > android/key.properties echo storePassword=$STORE_PASS > android/key.properties
echo keyPassword=$KEY_PASS >> android/key.properties echo keyPassword=$KEY_PASS >> android/key.properties
echo keyAlias=upload >> android/key.properties echo keyAlias=upload >> android/key.properties
echo storeFile=$KEYSTORE_PATH >> android/key.properties echo storeFile=$KEYSTORE_PATH >> android/key.properties
""" """
// ... Lancer Fastlane ... // ... Lancer Fastlane ...
dir('android') { dir('android') {
sh "GOOGLE_JSON_KEY_PATH='$GOOGLE_JSON' fastlane deploy_internal" sh "GOOGLE_JSON_KEY_PATH='$GOOGLE_JSON' fastlane deploy_internal"
}
} }
} }
} }