Skip to content
Snippets Groups Projects
Commit 1f7396a9 authored by René Schöne's avatar René Schöne
Browse files

Read version for pages using plain python

parent fb257702
No related branches found
No related tags found
No related merge requests found
Pipeline #9734 passed
import subprocess
ragconnectVersionFileName = '../ragconnect.base/src/main/resources/ragConnectVersion.properties'
def get_version():
proc = subprocess.run('./gradlew printVersion --quiet',
shell=True,
capture_output=True,
text=True,
cwd='..')
return proc.stdout
with open(ragconnectVersionFileName) as ragconnectVersionFile:
versionFileContent = ragconnectVersionFile.read()
return versionFileContent[versionFileContent.rindex('version=') + 8:].strip()
def define_env(env):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment