Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3755332

Browse files
author
chris.agocs
committed
Remove cache
1 parent f5fa439 commit 3755332

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

.gitlab-ci.yml

-20
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ variables:
1313
.common: &common
1414
tags: [ "runner:main", "size:large" ]
1515

16-
cache: &default_cache
17-
key: '$CI_SERVER_VERSION' # Reset the cache every time gitlab is upgraded. ~Every couple months
18-
paths:
19-
- .gradle/wrapper
20-
- .gradle/caches
21-
policy: pull
22-
2316
.gradle_build: &gradle_build
2417
<<: *common
2518
image: gradle:6.9.0-jdk8
@@ -28,26 +21,13 @@ build: &build
2821
<<: *gradle_build
2922
stage: build
3023
rules:
31-
- if: '$POPULATE_CACHE'
32-
when: never
3324
- when: on_success
3425
script:
3526
- ./gradlew clean build
3627
artifacts:
3728
paths:
3829
- 'workspace/datadog-lambda-java/build/libs/*.jar'
3930

40-
build_with_cache:
41-
<<: *build
42-
rules:
43-
- if: '$POPULATE_CACHE'
44-
when: on_success
45-
- when: manual
46-
allow_failure: true
47-
cache:
48-
<<: *default_cache
49-
policy: push
50-
5131
deploy_to_sonatype:
5232
<<: *gradle_build
5333
stage: deploy

0 commit comments

Comments
 (0)