From c1e86f69e017c37f20ba5de375f9adf48f9d6fe9 Mon Sep 17 00:00:00 2001 From: Alexander Diewald <diewald@fortiss.org> Date: Mon, 13 Jan 2020 16:52:32 +0100 Subject: [PATCH] Always fetch the latest plugin versions from remote --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a544276..2428dff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,10 +5,16 @@ stages: - test variables: - GIT_SUBMODULE_STRATEGY: recursive + # recursive should work here, but gitlab-runner does not pull the latest remote + # for submodules: https://gitlab.com/gitlab-org/gitlab-runner/issues/3011 + GIT_SUBMODULE_STRATEGY: none MAVEN_CLI_OPTS: "--batch-mode" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dbuild.tooling=true -Dbuild.af3=true -Dbuild.emf=true" + +before_script: + - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" + cache: paths: - .m2/repository/ @@ -16,6 +22,12 @@ cache: build: stage: build + before_script: + - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" + # Make Git submodules work + - which git || (apk --no-cache add git) + - git submodule sync --recursive + - git submodule update --remote --recursive script: - mvn $MAVEN_CLI_OPTS verify -- GitLab