Skip to content

Commit

Permalink
Do not fix JDK version in gitlab script
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Jun 17, 2024
1 parent a78b2fb commit 51f897c
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
image: alpine

stages: [trigger]
stages: [prepare, trigger]

prepare:
stage: prepare
image: "486234852809.dkr.ecr.us-east-1.amazonaws.com/images/docker:24.0.4-gbi-focal"
tags: [ "arch:arm64" ]
script:
- set -x
- echo "Preparing to trigger the build pipeline"
- echo "FEATURE_VERSION=$(cat make/conf/version-numbers.conf | grep 'DEFAULT_VERSION_FEATURE' | cut -d '=' -f 2 | xargs)" > build.env
- cat build.env
artifacts:
reports:
dotenv: build.env
expire_in: 1 day

build:
stage: trigger
needs: [prepare]
variables:
JDK_VERSION: "latest"
JDK_VERSION: "${FEATURE_VERSION}"
DEBUG_LEVEL: "fastdebug"
HASH: "${CI_COMMIT_SHORT_SHA}"
trigger:
Expand All @@ -17,9 +32,9 @@ build:

test:
stage: trigger
needs: [build]
needs: [prepare, build]
variables:
JDK_VERSION: "23"
JDK_VERSION: "${FEATURE_VERSION}"
DEBUG_LEVEL: "fastdebug"
HASH: "${CI_COMMIT_SHORT_SHA}"
trigger:
Expand Down

0 comments on commit 51f897c

Please sign in to comment.