Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
dcache-cta
Commits
c7e1f820
Commit
c7e1f820
authored
May 19, 2022
by
Tigran Mkrtchyan
☕
Browse files
gitlab-ci: use maven artefacts cache only for build stages
parent
a1806847
Pipeline
#28506
passed with stages
in 3 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c7e1f820
...
@@ -8,19 +8,19 @@ variables:
...
@@ -8,19 +8,19 @@ variables:
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--no-transfer-progress
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true
-Dmaven.repo.local=.m2/repository"
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--no-transfer-progress
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true
-Dmaven.repo.local=.m2/repository"
REPO_NAME
:
dcache-cta
REPO_NAME
:
dcache-cta
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache
:
key
:
files
:
-
pom.xml
prefix
:
"
$CI_JOB_NAME"
paths
:
-
./.m2/repository
build
:
build
:
stage
:
build
stage
:
build
image
:
maven:3.6.3-openjdk-11
image
:
maven:3.6.3-openjdk-11
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache
:
key
:
files
:
-
pom.xml
prefix
:
"
$CI_JOB_NAME"
paths
:
-
./.m2/repository
script
:
script
:
-
mvn $MAVEN_CLI_OPTS clean package
-
mvn $MAVEN_CLI_OPTS clean package
artifacts
:
artifacts
:
...
@@ -36,6 +36,15 @@ build:
...
@@ -36,6 +36,15 @@ build:
build_java_next
:
build_java_next
:
stage
:
build
stage
:
build
image
:
maven:3.8.4-openjdk-17
image
:
maven:3.8.4-openjdk-17
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache
:
key
:
files
:
-
pom.xml
prefix
:
"
$CI_JOB_NAME"
paths
:
-
./.m2/repository
script
:
script
:
-
mvn $MAVEN_CLI_OPTS clean package
-
mvn $MAVEN_CLI_OPTS clean package
artifacts
:
artifacts
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment