Loading .gitlab-ci.yml +18 −11 Original line number Diff line number Diff line image: redmic/maven-gitlab stages: - build maven-build: stage: build image: redmic/maven-gitlab variables: MAVEN_CLI_OPTS: "--batch-mode" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" only: - master cache: paths: - .m2/repository/ deploy: script: - mvn $MAVEN_CLI_OPTS deploy No newline at end of file - mvn deploy -B artifacts: name: "$CI_PROJECT_NAME" expire_in: '6 months' paths: - target/*.jar Loading
.gitlab-ci.yml +18 −11 Original line number Diff line number Diff line image: redmic/maven-gitlab stages: - build maven-build: stage: build image: redmic/maven-gitlab variables: MAVEN_CLI_OPTS: "--batch-mode" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" only: - master cache: paths: - .m2/repository/ deploy: script: - mvn $MAVEN_CLI_OPTS deploy No newline at end of file - mvn deploy -B artifacts: name: "$CI_PROJECT_NAME" expire_in: '6 months' paths: - target/*.jar