diff --git a/Jenkinsfile b/Jenkinsfile index c609c6d..8377156 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { steps { dir('Software') { sh """ - python3 -m venv .venv + [ -d .venv ] || python3 -m venv .venv ${env.VENV_PATH}/bin/pip install --upgrade pip platformio """ } @@ -72,9 +72,11 @@ wifi_ap_password = DummyAP } } - stage('🧹 Cleanup') { + stage('🧹 Cleanup Build Output') { steps { - deleteDir() + dir('Software') { + sh "rm -rf .pio" + } } } }