From 5589550fed38b122a8ff197168a1d9f66900a631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schl=C3=BCtter=20Yannik?= <ys037@hdm-stuttgart.de> Date: Thu, 22 Feb 2024 18:21:54 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b317df5f..206a4832 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 -- GitLab