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

Merge branch 'main' into 'production'

Production Release

See merge request !143
parents e78249dd f3c65632
No related branches found
No related tags found
1 merge request!143Production Release
Pipeline #304453 passed
...@@ -213,13 +213,12 @@ Trigger AWS Deployment: ...@@ -213,13 +213,12 @@ Trigger AWS Deployment:
fi fi
- | - |
curl --request POST \ curl --request POST \
--form token=${NSHMP_WS_STATIC_CDK_TRIGGER_TOKEN} \ --form token=${NSHMP_CDK_TRIGGER_TOKEN} \
--form ref=${REF} \ --form ref=${REF} \
--form "variables[description]=Triggered by nshmp-ws-static" \ --form "variables[description]=Triggered by nshmp-ws-static" \
--form "variables[ENVIRONMENT]=${ENVIRONMENT}" \ --form "variables[ENVIRONMENT]=${ENVIRONMENT}" \
--form "variables[NSHMP_WS_STATIC_IMAGE]=${IMAGE_NAME}" \ --form "variables[NSHMP_WS_STATIC_IMAGE]=${IMAGE_NAME}" \
--form "variables[TRIGGER_PASSCODE]=${NSHMP_WS_STATIC_CDK_TRIGGER_TOKEN}" \ "https://${PRIVATE_GITLAB}/api/v4/projects/${NSHMP_CDK_PROJECT_ID}/trigger/pipeline"
"https://${PRIVATE_GITLAB}/api/v4/projects/${NSHMP_WS_STATIC_CDK_PROJECT_ID}/trigger/pipeline"
stage: trigger stage: trigger
variables: variables:
REF: main REF: main
......
...@@ -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.0.6 nshmpLibVersion = 1.3.10
nshmpWsUtilsVersion = 0.3.10 nshmpWsUtilsVersion = 0.3.12
openApiVersion = 4.0.0 openApiVersion = 4.0.0
shadowVersion = 7.1.1 shadowVersion = 7.1.1
slfVersion = 1.7.30 slfVersion = 1.7.30
......
...@@ -4,21 +4,28 @@ tasks.withType(JavaCompile) { ...@@ -4,21 +4,28 @@ tasks.withType(JavaCompile) {
doFirst { doFirst {
def versionFile = new File("${projectDir}/src/main/resources/version/nshmp-ws-static-version.json") def versionFile = new File("${projectDir}/src/main/resources/version/nshmp-ws-static-version.json")
new File(versionFile.getParent()).mkdirs() new File(versionFile.getParent()).mkdirs()
def details = versionDetails()
def ciProjectUrl = System.getenv("CI_PROJECT_URL") try {
def branch = System.getenv("CI_COMMIT_BRANCH") def details = versionDetails()
def versionInfo = [ def ciProjectUrl = System.getenv("CI_PROJECT_URL")
branchName: branch ? branch : details.branchName, def branch = System.getenv("CI_COMMIT_BRANCH")
commitDistance: details.commitDistance, def versionInfo = [
gitHash: details.gitHash, branchName: branch ? branch : details.branchName,
gitHashFull: details.gitHashFull, commitDistance: details.commitDistance,
isCleanTag: details.isCleanTag, gitHash: details.gitHash,
lastTag: details.lastTag, gitHashFull: details.gitHashFull,
projectName: rootProject.name, isCleanTag: details.isCleanTag,
url: ciProjectUrl ? ciProjectUrl : 'git config --get remote.origin.url'.execute().text.replace('\n', ''), lastTag: details.lastTag,
version: details.version, projectName: project.name,
] url: ciProjectUrl ? ciProjectUrl : "git config --get remote.origin.url".execute().text.replace("\n", ""),
def json = groovy.json.JsonOutput.toJson(versionInfo) version: details.version,
versionFile.write(groovy.json.JsonOutput.prettyPrint(json)) ]
def json = groovy.json.JsonOutput.toJson(versionInfo)
versionFile.write(groovy.json.JsonOutput.prettyPrint(json))
} catch (Exception e) {
println("Failed to create version file. Writing blank file.")
println(e)
versionFile.write('{}')
}
} }
} }
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