Update jar merging pipeline

This commit is contained in:
James Seibel
2022-01-22 21:58:57 -06:00
parent 26b4c3a2d9
commit b555e35016
+21 -7
View File
@@ -3,6 +3,7 @@ image: gradle:eclipse-temurin
# all stages need to be defined here
stages:
- gradleSetup
- build
- merge
@@ -22,7 +23,24 @@ before_script:
- echo GE_JOB_ID=$CI_JOB_ID >> generate_jars.env
# first stage
gradleSetup:
stage: gradleSetup
script: ./gradlew --build-cache --gradle-user-home cache/ check
cache:
key:
files:
- gradle/wrapper/gradle-wrapper.properties
paths:
- cache/caches/
- cache/notifications/
- cache/wrapper/
# second stage
build:
stage: build
script: ./gradlew build
@@ -48,7 +66,7 @@ build:
- forge/run
- build
- .gradle
- .
- gradle
artifacts:
paths:
# relative to the root directory
@@ -58,7 +76,7 @@ build:
# To ensure we've access to these files in the next stage
dotenv: generate_jars.env
# second stage
# third stage
merge:
stage: merge
script: ./gradlew merge
@@ -86,17 +104,13 @@ merge:
- forge/run
- build
- .gradle
- .
artifacts:
paths:
# relative to the root directory
- Merged
reports:
# To ensure we've access to this file in the next stage
dotenv: merged_jar.env
## third stage
## forth stage
#deploy:
# stage: deploy
# image: registry.gitlab.com/gitlab-org/release-cli:latest