From 2d26a92937efdb901b7605b4f3b210f6ab6fec3a Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 15 Jun 2025 21:36:52 +0200 Subject: [PATCH] updated jenkins-File --- Jenkinsfile | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f02ba3..a6ec4d8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,13 +7,7 @@ pipeline { VENV_PATH = "${WORKSPACE}/Software/.venv" } - parameters { - choice( - name: 'BUILD_ENV', - choices: ['pcb_rev_1-2_serial', 'pcb_rev_1-3_serial', 'pcb_rev_1-4_serial'], - description: 'Firmware-Umgebung auswählen' - ) - } + def allEnvironments = ['pcb_rev_1-2_serial', 'pcb_rev_1-3_serial', 'pcb_rev_1-4_serial'] stages { @@ -42,22 +36,25 @@ wifi_ap_password = DummyAP } } - stage('🧪 Build Firmware') { + stage('🧱 Build Firmware for All Environments') { steps { dir('Software') { - sh """ - ${env.VENV_PATH}/bin/platformio run -e ${params.BUILD_ENV} - """ + script { + // Build Firmware for each environment + for (envName in allEnvironments) { + echo "🔧 Baue Firmware für: ${envName}" + sh "${env.VENV_PATH}/bin/platformio run -e ${envName}" + } + } } } } - stage('📁 Build Filesystem (LittleFS)') { + stage('📁 Build Filesystem') { steps { dir('Software') { - sh """ - ${env.VENV_PATH}/bin/platformio run -t buildfs -e ${params.BUILD_ENV} - """ + echo "📁 Baue Filesystem für ${allEnvironments[0]} (repräsentativ)" + sh "${env.VENV_PATH}/bin/platformio run -t buildfs -e ${allEnvironments[0]}" } } }