Clean up the build script

This commit is contained in:
James Seibel
2022-03-15 04:05:12 +00:00
parent c80b025ac1
commit 207cab9a0f
+20 -11
View File
@@ -5,7 +5,7 @@ image: gradle:eclipse-temurin
stages:
- build_18-1
- build_18-2
- zip_artifacts
# - zip_artifacts
variables:
# If we have correctness issues when compiling this can be set to false
@@ -46,16 +46,8 @@ build_18-2:
paths:
- .gradle
- cache/
# put artifacts in a zip
# This should only be done after all the builds have been completed
zip_artifacts:
stage: zip_artifacts
# The complier complains if we don't do something with the script line
script: echo 'Building complete. Creating artifact Zip.'
# build using Java 17
image: eclipse-temurin:17
# TEMPORARY, there should be a way of either generating artifacts per build or in a separate stage
artifacts:
# This should only be done after the last build, otherwise there will be duplicate jars
name: "Merged_NightlyBuild-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}"
@@ -65,6 +57,23 @@ zip_artifacts:
expire_in: 1 day
# # put artifacts in a zip
# # This should only be done after all the builds have been completed
# zip_artifacts:
# stage: zip_artifacts
# # The complier complains if we don't do something with the script line
# script: echo 'Building complete. Creating artifact Zip.'
# # build using Java 17
# image: eclipse-temurin:17
# artifacts:
# # This should only be done after the last build, otherwise there will be duplicate jars
# name: "Merged_NightlyBuild-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}"
# paths:
# # relative to the root directory
# - Merged
# expire_in: 1 day
# unused deployment stage
#deploy: