From 973453249181cefd8cd4cf302f4b0b58dd6d6f28 Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Mon, 8 Dec 2025 17:08:35 +0100 Subject: [PATCH] style: Fix indentation of Android build and deploy stage in Jenkinsfile --- Jenkinsfile | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 396fa8f..8b81961 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,28 +30,29 @@ pipeline { } stage('Build & Deploy Android') { - steps { - withCredentials([ - file(credentialsId: 'android-keystore-file', variable: 'KEYSTORE_PATH'), - file(credentialsId: 'google-play-json', variable: 'GOOGLE_JSON'), - // 1. On récupère le fichier .env stocké dans Jenkins - file(credentialsId: 'flutter-env-file', variable: 'ENV_FILE_REF') - ]) { - script { - // 2. On copie le fichier secret vers la racine du workspace sous le nom ".env" - sh 'cp $ENV_FILE_REF .env' + steps { + withCredentials([ + file(credentialsId: 'android-keystore-file', variable: 'KEYSTORE_PATH'), + file(credentialsId: 'google-play-json', variable: 'GOOGLE_JSON'), + // 1. On récupère le fichier .env stocké dans Jenkins + file(credentialsId: 'flutter-env-file', variable: 'ENV_FILE_REF') + ]) { + script { + // 2. On copie le fichier secret vers la racine du workspace sous le nom ".env" + sh 'cp $ENV_FILE_REF .env' - // ... Votre code existant pour key.properties ... - sh """ - echo storePassword=$STORE_PASS > android/key.properties - echo keyPassword=$KEY_PASS >> android/key.properties - echo keyAlias=upload >> android/key.properties - echo storeFile=$KEYSTORE_PATH >> android/key.properties - """ + // ... Votre code existant pour key.properties ... + sh """ + echo storePassword=$STORE_PASS > android/key.properties + echo keyPassword=$KEY_PASS >> android/key.properties + echo keyAlias=upload >> android/key.properties + echo storeFile=$KEYSTORE_PATH >> android/key.properties + """ - // ... Lancer Fastlane ... - dir('android') { - sh "GOOGLE_JSON_KEY_PATH='$GOOGLE_JSON' fastlane deploy_internal" + // ... Lancer Fastlane ... + dir('android') { + sh "GOOGLE_JSON_KEY_PATH='$GOOGLE_JSON' fastlane deploy_internal" + } } } }