updated jenkins-File
This commit is contained in:
parent
c1513641fc
commit
2d26a92937
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -7,13 +7,7 @@ pipeline {
|
|||||||
VENV_PATH = "${WORKSPACE}/Software/.venv"
|
VENV_PATH = "${WORKSPACE}/Software/.venv"
|
||||||
}
|
}
|
||||||
|
|
||||||
parameters {
|
def allEnvironments = ['pcb_rev_1-2_serial', 'pcb_rev_1-3_serial', 'pcb_rev_1-4_serial']
|
||||||
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'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
@ -42,22 +36,25 @@ wifi_ap_password = DummyAP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('🧪 Build Firmware') {
|
stage('🧱 Build Firmware for All Environments') {
|
||||||
steps {
|
steps {
|
||||||
dir('Software') {
|
dir('Software') {
|
||||||
sh """
|
script {
|
||||||
${env.VENV_PATH}/bin/platformio run -e ${params.BUILD_ENV}
|
// 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 {
|
steps {
|
||||||
dir('Software') {
|
dir('Software') {
|
||||||
sh """
|
echo "📁 Baue Filesystem für ${allEnvironments[0]} (repräsentativ)"
|
||||||
${env.VENV_PATH}/bin/platformio run -t buildfs -e ${params.BUILD_ENV}
|
sh "${env.VENV_PATH}/bin/platformio run -t buildfs -e ${allEnvironments[0]}"
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user