diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b317df5f898a66f0226aede174c9946323a3e187..206a4832ae92354aef8616735cb9491c04be0a41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,29 +9,27 @@ variables: MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository" stages: - - build - - test - - package +- build +- test +- package build-battlearena: stage: build image: maven:3.9.4-eclipse-temurin-20 script: - - "echo 'Starting Build Stage'" - - "mvn compile -X" - + - "echo 'Starting Build Stage'" + - "mvn compile -X" test-battlearena: stage: test image: maven:3.9.4-eclipse-temurin-20 script: - - "echo 'Starting Test Stage'" - - "mvn test" + - "echo 'Starting Test Stage'" + - "mvn test" artifacts: reports: junit: - - target/surefire-reports/TEST-*.xml - - target/failsafe-reports/TEST-*.xml - + - target/surefire-reports/TEST-*.xml + - target/failsafe-reports/TEST-*.xml package-battlearena: stage: package image: maven:3.9.4-eclipse-temurin-20 @@ -40,8 +38,8 @@ package-battlearena: - "mvn package" only: refs: - - main + - main artifacts: paths: - - target/*.jar + - target/*.jar expire_in: 2 days