Skip to content
Snippets Groups Projects
Commit 297f0861 authored by Scherbaum Maximilian's avatar Scherbaum Maximilian
Browse files

Update .gitlab-ci.yml

parent 7e57f6d6
No related branches found
No related tags found
Loading
Pipeline #60012 failed
#include:
# - template: Jobs/SAST.gitlab-ci.yml
include:
- template: Jobs/SAST.gitlab-ci.yml
cache:
paths:
- .m2/repository
stages:
- build
#- test
#- package
variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
stages:
- build
- test
- package
build-battlearena:
stage: build
......@@ -21,3 +20,28 @@ build-battlearena:
- "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"
artifacts:
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
package-battlearena:
stage: package
image: maven:3.9.4-eclipse-temurin-20
script:
- "echo 'Starting Package Stage'"
- "mvn package"
only:
refs:
- main
artifacts:
paths:
- target/*.jar
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