Skip to content
Snippets Groups Projects
Commit 5589550f authored by Schlütter Yannik's avatar Schlütter Yannik
Browse files

Update .gitlab-ci.yml file

parent c4c6fabb
No related branches found
No related tags found
3 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development
Pipeline #60139 failed
...@@ -9,29 +9,27 @@ variables: ...@@ -9,29 +9,27 @@ variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository" MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
stages: stages:
- build - build
- test - test
- package - package
build-battlearena: build-battlearena:
stage: build stage: build
image: maven:3.9.4-eclipse-temurin-20 image: maven:3.9.4-eclipse-temurin-20
script: script:
- "echo 'Starting Build Stage'" - "echo 'Starting Build Stage'"
- "mvn compile -X" - "mvn compile -X"
test-battlearena: test-battlearena:
stage: test stage: test
image: maven:3.9.4-eclipse-temurin-20 image: maven:3.9.4-eclipse-temurin-20
script: script:
- "echo 'Starting Test Stage'" - "echo 'Starting Test Stage'"
- "mvn test" - "mvn test"
artifacts: artifacts:
reports: reports:
junit: junit:
- target/surefire-reports/TEST-*.xml - target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml - target/failsafe-reports/TEST-*.xml
package-battlearena: package-battlearena:
stage: package stage: package
image: maven:3.9.4-eclipse-temurin-20 image: maven:3.9.4-eclipse-temurin-20
...@@ -40,8 +38,8 @@ package-battlearena: ...@@ -40,8 +38,8 @@ package-battlearena:
- "mvn package" - "mvn package"
only: only:
refs: refs:
- main - main
artifacts: artifacts:
paths: paths:
- target/*.jar - target/*.jar
expire_in: 2 days expire_in: 2 days
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment