improved Jenkins File
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -21,7 +21,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
dir('Software') {
|
dir('Software') {
|
||||||
sh """
|
sh """
|
||||||
python3 -m venv .venv
|
[ -d .venv ] || python3 -m venv .venv
|
||||||
${env.VENV_PATH}/bin/pip install --upgrade pip platformio
|
${env.VENV_PATH}/bin/pip install --upgrade pip platformio
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
@@ -72,9 +72,11 @@ wifi_ap_password = DummyAP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('🧹 Cleanup') {
|
stage('🧹 Cleanup Build Output') {
|
||||||
steps {
|
steps {
|
||||||
deleteDir()
|
dir('Software') {
|
||||||
|
sh "rm -rf .pio"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user