From c8336b7a8df7556abccd36d5609c9a340217317d Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Sun, 14 Dec 2025 23:33:15 -0500 Subject: [PATCH] versioning --- Jenkinsfile | 13 ++++++++++++- config/version.py | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d6c463c..1f583bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,6 @@ pipeline { VUE_CONTAINER_NAME = "chore-app-frontend" FLASK_CONTAINER_NAME = "chore-app-backend" NETWORK_NAME = "chore-app-net" - BASE_VERSION = '1.0.0' } stages { @@ -20,6 +19,18 @@ pipeline { 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') { steps { diff --git a/config/version.py b/config/version.py index 7e84df8..3c144c9 100644 --- a/config/version.py +++ b/config/version.py @@ -2,7 +2,7 @@ # file: config/version.py 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: """