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

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

Specify maven cache per job

parent fda7ee9a
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
image: jhipster/jhipster:v7.6.0 image: jhipster/jhipster:v7.6.0
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
stages: stages:
- setup - setup
- lint - lint
...@@ -36,6 +31,10 @@ checkstyle: ...@@ -36,6 +31,10 @@ checkstyle:
script: script:
- ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME
needs: [] needs: []
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
prettier: prettier:
stage: lint stage: lint
...@@ -77,6 +76,10 @@ maven-compile: ...@@ -77,6 +76,10 @@ maven-compile:
- target/generated-sources/ - target/generated-sources/
expire_in: 1 day expire_in: 1 day
needs: [] needs: []
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
maven-test: maven-test:
# DinD service is required for Testcontainers # DinD service is required for Testcontainers
...@@ -103,6 +106,10 @@ maven-test: ...@@ -103,6 +106,10 @@ maven-test:
expire_in: 30 day expire_in: 30 day
allow_failure: true allow_failure: true
needs: [] needs: []
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
frontend-test: frontend-test:
stage: test stage: test
...@@ -136,6 +143,10 @@ sonar-analyze: ...@@ -136,6 +143,10 @@ 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
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
maven-package: maven-package:
stage: package stage: package
...@@ -157,3 +168,7 @@ maven-package: ...@@ -157,3 +168,7 @@ 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
cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
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