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

Merge branch 'version-info' into 'main'

Version info

See merge request !148
parents 5aed1f14 379f6512
No related branches found
No related tags found
1 merge request!148Version info
Pipeline #320792 passed
...@@ -7,7 +7,6 @@ build ...@@ -7,7 +7,6 @@ build
Scratch*.java Scratch*.java
tmp tmp
.DS_Store .DS_Store
.vscode
.apt_generated* .apt_generated*
.factorypath .factorypath
swagger-files swagger-files
......
...@@ -57,10 +57,7 @@ default: ...@@ -57,10 +57,7 @@ default:
.production-env: &production-env .production-env: &production-env
if: > if: >
$CI_PROJECT_PATH == $UPSTREAM_PATH $CI_PROJECT_PATH == $UPSTREAM_PATH
&& ( && ( $CI_COMMIT_TAG && $CI_COMMIT_TAG != '' )
$CI_COMMIT_BRANCH == 'production'
|| ( $CI_COMMIT_TAG && $CI_COMMIT_TAG != '' )
)
variables: variables:
ENVIRONMENT: production ENVIRONMENT: production
......
...@@ -7,8 +7,8 @@ micronautRxVersion = 2.1.1 ...@@ -7,8 +7,8 @@ micronautRxVersion = 2.1.1
netcdfVersion = 5.5.2 netcdfVersion = 5.5.2
nodePluginVersion = 3.0.1 nodePluginVersion = 3.0.1
nodeVersion = 16.3.0 nodeVersion = 16.3.0
nshmpLibVersion = 1.3.10 nshmpLibVersion = 1.4.2
nshmpWsUtilsVersion = 0.3.12 nshmpWsUtilsVersion = 0.3.14
openApiVersion = 4.0.0 openApiVersion = 4.0.0
shadowVersion = 7.1.1 shadowVersion = 7.1.1
slfVersion = 1.7.30 slfVersion = 1.7.30
......
...@@ -8,15 +8,9 @@ tasks.withType(JavaCompile) { ...@@ -8,15 +8,9 @@ tasks.withType(JavaCompile) {
try { try {
def details = versionDetails() def details = versionDetails()
def ciProjectUrl = System.getenv("CI_PROJECT_URL") def ciProjectUrl = System.getenv("CI_PROJECT_URL")
def branch = System.getenv("CI_COMMIT_BRANCH")
def versionInfo = [ def versionInfo = [
branchName: branch ? branch : details.branchName, gitHash: details.gitHashFull,
commitDistance: details.commitDistance, projectName: "nshmp-ws-static",
gitHash: details.gitHash,
gitHashFull: details.gitHashFull,
isCleanTag: details.isCleanTag,
lastTag: details.lastTag,
projectName: project.name,
url: ciProjectUrl ? ciProjectUrl : "git config --get remote.origin.url".execute().text.replace("\n", ""), url: ciProjectUrl ? ciProjectUrl : "git config --get remote.origin.url".execute().text.replace("\n", ""),
version: details.version, version: details.version,
] ]
......
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