versioning
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -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 {
|
||||||
|
|||||||
@@ -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:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user