This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 7777a6f3 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Annotate job (in)dependences to speed up pipeline

parent 4bd73dff
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -20,6 +20,7 @@ checkstyle: ...@@ -20,6 +20,7 @@ checkstyle:
stage: check stage: check
script: script:
- ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME
needs: []
maven-compile: maven-compile:
stage: build stage: build
...@@ -30,18 +31,16 @@ maven-compile: ...@@ -30,18 +31,16 @@ maven-compile:
- target/classes/ - target/classes/
- target/generated-sources/ - target/generated-sources/
expire_in: 1 day expire_in: 1 day
needs: []
maven-test: maven-test:
# DinD service is required for Testcontainers # DinD service is required for Testcontainers
services: services:
- docker:20-dind - docker:20-dind
variables: variables:
# Instruct Testcontainers to use the daemon of DinD. # Instruct Testcontainers to use the daemon of DinD.
DOCKER_HOST: 'tcp://docker:2375' DOCKER_HOST: 'tcp://docker:2375'
DOCKER_TLS_CERTDIR: '' DOCKER_TLS_CERTDIR: ''
# before_script:
# - docker info
stage: test stage: test
script: script:
- ./mvnw -ntp test -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers || FAILED=true - ./mvnw -ntp test -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers || FAILED=true
...@@ -57,6 +56,7 @@ maven-test: ...@@ -57,6 +56,7 @@ maven-test:
- target/site - target/site
expire_in: 30 day expire_in: 30 day
allow_failure: true allow_failure: true
needs: []
frontend-test: frontend-test:
stage: test stage: test
...@@ -71,6 +71,7 @@ frontend-test: ...@@ -71,6 +71,7 @@ frontend-test:
- target/jacoco - target/jacoco
expire_in: 1 day expire_in: 1 day
allow_failure: true allow_failure: true
needs: []
sonar-analyze: sonar-analyze:
stage: analyze stage: analyze
...@@ -81,6 +82,7 @@ sonar-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://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 - ./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 allow_failure: true
needs: []
maven-package: maven-package:
stage: package stage: package
...@@ -102,3 +104,4 @@ maven-package: ...@@ -102,3 +104,4 @@ maven-package:
# script: # 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 # - ./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 when: manual
needs: []
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment