diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..147991fc84278d6c3f2c92c30bf7e7870846f6fd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +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