Last part of branch name only please
This commit is contained in:
parent
461173a778
commit
329fe50b1d
|
@ -56,7 +56,7 @@ def main():
|
||||||
print("Git not found")
|
print("Git not found")
|
||||||
branch="none"
|
branch="none"
|
||||||
else:
|
else:
|
||||||
branch=os.getenv("GIT_BRANCH")
|
branch=os.getenv("GIT_BRANCH").rpartition('/')[2]
|
||||||
|
|
||||||
with open("fmlversion.properties","w") as f:
|
with open("fmlversion.properties","w") as f:
|
||||||
f.write("%s=%s\n" %("fmlbuild.major.number",major))
|
f.write("%s=%s\n" %("fmlbuild.major.number",major))
|
||||||
|
|
Loading…
Reference in New Issue