From 5ec93d5a467a5eacbf6959a621c98a622b5d9e83 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Tue, 13 Feb 2024 22:26:06 -0800 Subject: [PATCH] Try again --- vars/pythonVenvStage.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vars/pythonVenvStage.groovy b/vars/pythonVenvStage.groovy index 18e5710..41192af 100644 --- a/vars/pythonVenvStage.groovy +++ b/vars/pythonVenvStage.groovy @@ -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,8 +24,9 @@ void call(Map config = [:], Closure body) { "PATH=${venvBinDir.join('/')}" ] - stage(runConfig.name) { - if (fileExists(runConfig.venvDir) && runConfig.recreateVenv) { + stage(runConfig.stepName) { + printBanner(runConfig.stepName) + if (fileExists(runConfig.venvDir) && runConfig.recreateVenv) { dir(runConfig.venvDir) { deleteDir() }