Commit 1f7396a9 authored by René Schöne's avatar René Schöne
Browse files

Read version for pages using plain python

parent fb257702
Pipeline #9734 passed with stages
in 10 minutes and 1 second
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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment