From 9cb74edbba640462d9947a945fcfbf6a033af94f Mon Sep 17 00:00:00 2001 From: Tim Rizzi Date: Thu, 30 May 2019 21:13:12 +0000 Subject: [PATCH] Update instructions and uncomment out deploy --- lib/gitlab/ci/templates/Maven.gitlab-ci.yml | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/gitlab/ci/templates/Maven.gitlab-ci.yml b/lib/gitlab/ci/templates/Maven.gitlab-ci.yml index 65aa0794824..1e35c22d0b3 100644 --- a/lib/gitlab/ci/templates/Maven.gitlab-ci.yml +++ b/lib/gitlab/ci/templates/Maven.gitlab-ci.yml @@ -39,17 +39,17 @@ verify:jdk8: <<: *verify image: maven:3.3.9-jdk-8 -# To deploy packages to the GitLab Maven Repository, uncomment the following section. -# Please note: The Maven Repository is currently only available for Premium / Ultimate accounts. -# +# To deploy packages to the GitLab Maven Repository, create a ci_settings.xml file +# See https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for more details. +# Please note: The Maven Repository is currently only available in GitLab Premium / Ultimate. # For `master` branch run `mvn deploy` automatically. -#deploy:jdk8: -# stage: deploy -# script: -# - if [ ! -f ci_settings.xml ]; -# then echo CI settings missing, please see https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for instructions.; -# fi -# - 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml' -# only: -# - master -# image: maven:3.3.9-jdk-8 +deploy:jdk8: + stage: deploy + script: + - if [ ! -f ci_settings.xml ]; + then echo CI settings missing, please see https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for instructions.; + fi + - 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml' + only: + - master + image: maven:3.3.9-jdk-8 -- GitLab