Loading .gitlab-ci.yml +5 −4 Original line number Diff line number Diff line Loading @@ -2,13 +2,14 @@ image: openjdk:19 # Use the appropriate Java 19 image stages: - build - run variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" # Custom Maven repository location before_script: - apt-get update -qy - apt-get install -y maven #before_script: # - apt-get update -qy # - apt-get install -y maven build: stage: build Loading @@ -18,7 +19,7 @@ build: paths: - target/*.jar # Save JAR artifacts .post: run: stage: run script: - java -jar target/*.jar # Replace with the actual JAR file name Loading Loading
.gitlab-ci.yml +5 −4 Original line number Diff line number Diff line Loading @@ -2,13 +2,14 @@ image: openjdk:19 # Use the appropriate Java 19 image stages: - build - run variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" # Custom Maven repository location before_script: - apt-get update -qy - apt-get install -y maven #before_script: # - apt-get update -qy # - apt-get install -y maven build: stage: build Loading @@ -18,7 +19,7 @@ build: paths: - target/*.jar # Save JAR artifacts .post: run: stage: run script: - java -jar target/*.jar # Replace with the actual JAR file name Loading