Files
chore/backend/config/version.py
Ryan Kegel a0a059472b
Some checks failed
Gitea Actions Demo / build-and-push (push) Failing after 6s
Moved things around
2026-01-21 17:18:58 -05:00

13 lines
380 B
Python

# python
# file: config/version.py
import os
BASE_VERSION = "1.0.3" # 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