Files
chore/backend/config/version.py
Ryan Kegel 861b3dc9d4
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 1m48s
Refactor code structure and remove redundant sections for improved readability and maintainability
2026-04-10 17:44:37 -04:00

13 lines
380 B
Python

# python
# file: config/version.py
import os
BASE_VERSION = "1.0.8" # update manually when releasing features
def get_full_version() -> str:
"""
Return semantic version with optional Jenkins build metadata, e.g. 1.2.3-456.
"""
build = os.environ.get("BUILD_NUMBER") or os.environ.get("APP_BUILD")
return f"{BASE_VERSION}-{build}" if build else BASE_VERSION