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