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(): def get_version():
proc = subprocess.run('./gradlew printVersion --quiet', with open(ragconnectVersionFileName) as ragconnectVersionFile:
shell=True, versionFileContent = ragconnectVersionFile.read()
capture_output=True, return versionFileContent[versionFileContent.rindex('version=') + 8:].strip()
text=True,
cwd='..')
return proc.stdout
def define_env(env): 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