Try again

This commit is contained in:
Jim Nicholson 2024-02-13 22:26:06 -08:00
parent 024a9798b3
commit 5ec93d5a46

View File

@ -8,7 +8,7 @@ void call(Map config = [:], Closure body) {
updatePip: true,
installPipTools: true,
requirementsFile: 'requirements.in',
name: 'python'
stepName: 'python'
]
runConfig = defaultConfig + config
@ -24,7 +24,8 @@ void call(Map config = [:], Closure body) {
"PATH=${venvBinDir.join('/')}"
]
stage(runConfig.name) {
stage(runConfig.stepName) {
printBanner(runConfig.stepName)
if (fileExists(runConfig.venvDir) && runConfig.recreateVenv) {
dir(runConfig.venvDir) {
deleteDir()