Skip to content
Snippets Groups Projects
Commit b22d8170 authored by Holzheu Hannah's avatar Holzheu Hannah
Browse files

added package stage for CI/CD

parent aff50458
No related branches found
No related tags found
1 merge request!48added package stage for CI/CD
Pipeline #57453 passed
......@@ -5,11 +5,14 @@ cache:
stages:
- build
- test
- package
maven-build:
image: maven:3.8.5-openjdk-17
stage: build
script: "mvn clean package -DskipTests"
script:
- "echo 'Starting Build Process'"
- "mvn compile"
artifacts:
paths:
- target/
......@@ -20,3 +23,25 @@ maven-test:
script: "mvn test"
dependencies:
- maven-build
artifacts:
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
maven-package:
stage: package
image: maven:3.8.5-openjdk-17
script:
- "echo 'Starting Package Stage'"
- "mvn package -DSkipTests"
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