versioning

This commit is contained in:
2025-12-14 23:33:15 -05:00
parent 0af9ac9c92
commit c8336b7a8d
2 changed files with 13 additions and 2 deletions

13
Jenkinsfile vendored
View File

@@ -10,7 +10,6 @@ pipeline {
VUE_CONTAINER_NAME = "chore-app-frontend" VUE_CONTAINER_NAME = "chore-app-frontend"
FLASK_CONTAINER_NAME = "chore-app-backend" FLASK_CONTAINER_NAME = "chore-app-backend"
NETWORK_NAME = "chore-app-net" NETWORK_NAME = "chore-app-net"
BASE_VERSION = '1.0.0'
} }
stages { stages {
@@ -20,6 +19,18 @@ pipeline {
checkout scm checkout scm
} }
} }
stage('Set Version') {
steps {
script {
// Read BASE_VERSION from Python source
env.BASE_VERSION = sh(
script: "python -c \"import sys; from config.version import BASE_VERSION; print(BASE_VERSION)\"",
returnStdout: true
).trim()
echo "BASE_VERSION set to: ${env.BASE_VERSION}"
}
}
}
stage('Build Frontend (Vue) App') { stage('Build Frontend (Vue) App') {
steps { steps {

View File

@@ -2,7 +2,7 @@
# file: config/version.py # file: config/version.py
import os import os
BASE_VERSION = "1.0.1" # update manually when releasing features BASE_VERSION = "1.0.2" # update manually when releasing features
def get_full_version() -> str: def get_full_version() -> str:
""" """