Skip to content
Snippets Groups Projects
Commit 021a6f3c authored by Fischer Jonas's avatar Fischer Jonas
Browse files

Update .gitlab-ci.yml file

parent 5bb27b68
No related branches found
No related tags found
Loading
Pipeline #58015 failed
include:
- template: Jobs/SAST.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
build: # This job runs in the build stage, which runs first.
stage: build
image: maven:3.9.4-eclipse-temurin-20
script:
- "echo 'Starting Build Stage'"
- "mvn compile"
unit-test: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
image: maven:3.9.4-eclipse-temurin-20
script:
- echo "Running unit tests..."
- "mvn test"
artifacts:
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
package-musicmanager:
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