Skip to content
Snippets Groups Projects
Commit 90e6077e authored by Vito Conforti's avatar Vito Conforti
Browse files

Add new file .gitlab-ci.yml

parent aa99ddf0
No related branches found
No related tags found
No related merge requests found
Pipeline #17516 failed
image: openjdk:19 # Use the appropriate Java 19 image
stages:
- build
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" # Custom Maven repository location
before_script:
- apt-get update -qy
- apt-get install -y maven
build:
stage: build
script:
- mvn clean install # Replace with your Maven build command
artifacts:
paths:
- target/*.jar # Save JAR artifacts
run_jar:
stage: run
script:
- java -jar target/*.jar # Replace with the actual JAR file name
dependencies:
- build # Run after the build stage
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment