Updated JenkinsFIle again

This commit is contained in:
Marcel Peterkau 2025-06-02 10:02:09 +02:00
parent 479b1861d1
commit d08e0cfbb3

10
Jenkinsfile vendored
View File

@ -4,6 +4,7 @@ pipeline {
environment { environment {
BUILD_ENV = "pcb_rev_1-4_serial" BUILD_ENV = "pcb_rev_1-4_serial"
PIO_HOME_DIR = "${WORKSPACE}/.pio" PIO_HOME_DIR = "${WORKSPACE}/.pio"
VENV_PATH = "${WORKSPACE}/Software/.venv"
} }
parameters { parameters {
@ -27,8 +28,7 @@ pipeline {
dir('Software') { dir('Software') {
sh """ sh """
python3 -m venv .venv python3 -m venv .venv
source .venv/bin/activate ${env.VENV_PATH}/bin/pip install --upgrade pip platformio
.venv/bin/pip install --upgrade pip platformio
""" """
} }
} }
@ -52,7 +52,7 @@ wifi_ap_password = DummyAP
steps { steps {
dir('Software') { dir('Software') {
sh """ sh """
.venv/bin/platformio run -e ${params.BUILD_ENV} ${env.VENV_PATH}/bin/platformio run -e ${params.BUILD_ENV}
""" """
} }
} }
@ -81,10 +81,10 @@ wifi_ap_password = DummyAP
post { post {
success { success {
echo "✅ CI abgeschlossen Firmware gebaut, Dummy-Stages vorbereitet" echo "✅ CI abgeschlossen Firmware gebaut, Dummy-Stages bereit"
} }
failure { failure {
echo "❌ Fehler im Build schau in die Logs, Commander Seraphon" echo "❌ Fehler im Build Logs checken, Commander Seraphon"
} }
} }
} }