diff --git a/Jenkinsfile b/Jenkinsfile index 031fd8c..4a4f66e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,9 +22,9 @@ pipeline { stage('Set Version') { steps { script { - // Read BASE_VERSION from Python source + // Extract BASE_VERSION from Python file using grep env.BASE_VERSION = sh( - script: "python -c \"import sys; from config.version import BASE_VERSION; print(BASE_VERSION)\"", + script: "grep '^BASE_VERSION' config/version.py | cut -d'\"' -f2", returnStdout: true ).trim() echo "BASE_VERSION set to: ${env.BASE_VERSION}"