# This template uses jdk8 for verifying and deploying images
image:maven:3.3.9-jdk-8
# Cache downloaded dependencies and plugins between builds.
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
cache:
...
@@ -37,7 +40,6 @@ cache:
...
@@ -37,7 +40,6 @@ cache:
# Verify merge requests using JDK8
# Verify merge requests using JDK8
verify:jdk8:
verify:jdk8:
<<:*verify
<<:*verify
image:maven:3.3.9-jdk-8
# To deploy packages from CI, create a ci_settings.xml file
# To deploy packages from CI, create a ci_settings.xml file
# For deploying packages to GitLab's Maven Repository: See https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for more details.
# For deploying packages to GitLab's Maven Repository: See https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for more details.
...
@@ -47,9 +49,8 @@ deploy:jdk8:
...
@@ -47,9 +49,8 @@ deploy:jdk8:
stage:deploy
stage:deploy
script:
script:
-if [ ! -f ci_settings.xml ];
-if [ ! -f ci_settings.xml ];
then echo CI settings missing\! If deploying to GitLab Maven Repository, please see https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for instructions.;
then echo "CI settings missing\! If deploying to GitLab Maven Repository, please see https://gitlab.com/help/user/project/packages/maven_repository.md#creating-maven-packages-with-gitlab-cicd for instructions.";