From 7777a6f3529a7ddafd2f83d73a274b1b6ac571ed Mon Sep 17 00:00:00 2001 From: Daniel Rainer <daniel.m.rainer@student.uibk.ac.at> Date: Tue, 1 Mar 2022 19:40:57 +0100 Subject: [PATCH] Annotate job (in)dependences to speed up pipeline --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5df5642a..164d0f9f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,7 @@ checkstyle: stage: check script: - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME + needs: [] maven-compile: stage: build @@ -30,18 +31,16 @@ maven-compile: - target/classes/ - target/generated-sources/ expire_in: 1 day + needs: [] maven-test: # DinD service is required for Testcontainers services: - docker:20-dind - variables: # Instruct Testcontainers to use the daemon of DinD. DOCKER_HOST: 'tcp://docker:2375' DOCKER_TLS_CERTDIR: '' - # before_script: - # - docker info stage: test script: - ./mvnw -ntp test -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers || FAILED=true @@ -57,6 +56,7 @@ maven-test: - target/site expire_in: 30 day allow_failure: true + needs: [] frontend-test: stage: test @@ -71,6 +71,7 @@ frontend-test: - target/jacoco expire_in: 1 day allow_failure: true + needs: [] sonar-analyze: stage: analyze @@ -81,6 +82,7 @@ sonar-analyze: - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://qe-sonarqube.uibk.ac.at/ -Dsonar.login=${SONAR_TOKEN_QE} -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://server.arctis.at/sonar/ -Dsonar.login=${SONAR_TOKEN} -Dmaven.repo.local=$MAVEN_USER_HOME allow_failure: true + needs: [] maven-package: stage: package @@ -102,3 +104,4 @@ maven-package: # script: # - ./mvnw -ntp jib:build -Pprod -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME when: manual + needs: [] -- GitLab