Skip to content
Snippets Groups Projects
Commit 8f4e36f7 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

check branch env var

parent b2910ad3
No related branches found
No related tags found
2 merge requests!613Production Release | nshmp-haz,!612Resolves - Add Version Info
......@@ -6,8 +6,9 @@ tasks.withType(JavaCompile) {
new File(versionFile.getParent()).mkdirs()
def details = versionDetails()
def ciProjectUrl = System.getenv("CI_PROJECT_URL")
def branch = System.getenv("CI_COMMIT_BRANCH")
def versionInfo = [
branchName: details.branchName,
branchName: branch ? branch : details.branchName,
commitDistance: details.commitDistance,
gitHash: details.gitHash,
gitHashFull: details.gitHashFull,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment