Skip to content
Snippets Groups Projects
Commit 6aeb1444 authored by David Diederich's avatar David Diederich
Browse files

Merge branch 'aws-cache-maven' into 'master'

Cache Maven Repository during AWS Test Execution

See merge request osdu/platform/ci-cd-pipelines!21
parents f799b749 12ee0326
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,12 @@
image: divido2/aws-maven:v1.0
environment:
name: AWS
variables:
MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml"
cache:
paths:
- $MAVEN_REPO_PATH
extends:
- .aws_variables
before_script:
......@@ -120,7 +126,7 @@ aws-test:
script:
- ls -ltr
- cd $INTEGRATION_TEST_DIR
- mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=info
- mvn $MAVEN_CLI_OPTS -Dmaven.repo.local=$MAVEN_REPO_PATH test -Dorg.slf4j.simpleLogger.defaultLogLevel=info
only:
variables:
- $AWS == 'true'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment