diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da7431ff0063a663858127274a341cfb0c9fbaea..f070c5fb71caad746434f24bde70ed2bf93808d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,33 +12,16 @@ variables: services: - docker:dind -cache: - paths: - - .m2/repository/ - - target/ - stages: - build - test - publish -build: - stage: build - script: - - mvn clean compile $MAVEN_CLI_OPTS --update-snapshots - artifacts: - paths: - - target/*.jar - -test: - stage: test - script: - - mvn test $MAVEN_CLI_OPTS - -verify: - stage: test - script: - - mvn verify $MAVEN_CLI_OPTS +# Maven Build, Test and Verify +include: + - component: $CI_SERVER_FQDN/ozg-cloud/ci-components/maven_build@main + inputs: + maven_cli_opts: $MAVEN_CLI_OPTS snapshot-gitlab: stage: publish