Skip to content
Snippets Groups Projects
Commit aae7dbcc authored by Jonas's avatar Jonas
Browse files

21.01.2024 - fix typo #36

parent 748c6fe3
Branches
No related tags found
1 merge request!7Dev in Main Merge
Pipeline #58069 failed
......@@ -11,16 +11,16 @@ build-backend: # This job runs in the build stage, which runs first.
image: maven:3.9.4-eclipse-temurin-21
script:
- "echo 'Starting Build Stage'"
- "cd ./sthbackend"
- "cd ./sth-backend"
- "mvn compile"
unit-test-backend: # This job runs in the test stage.
test-backend: # 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-21
script:
- echo "Running unit tests..."
- "cd ./sthbackend"
- "cd ./sth-backend"
- "mvn test"
artifacts:
reports:
......@@ -33,7 +33,7 @@ package-backend:
image: maven:3.9.4-eclipse-temurin-21
script:
- "echo 'Starting Package Stage'"
- "cd ./sthbackend"
- "cd ./sth-backend"
- "mvn package"
only:
refs:
......
include:
- template: Jobs/SAST.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution
- build
- test
- package
build: # This job runs in the build stage, which runs first.
stage: build
image: maven:3.9.4-eclipse-temurin-21
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-21
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-21
script:
- "echo 'Starting Package Stage'"
- "mvn package"
only:
refs:
- main
artifacts:
paths:
- target/*.jar
expire_in: 2 days
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment