versioning
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -22,9 +22,9 @@ pipeline {
|
|||||||
stage('Set Version') {
|
stage('Set Version') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// Read BASE_VERSION from Python source
|
// Extract BASE_VERSION from Python file using grep
|
||||||
env.BASE_VERSION = sh(
|
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
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
echo "BASE_VERSION set to: ${env.BASE_VERSION}"
|
echo "BASE_VERSION set to: ${env.BASE_VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user