Skip to content

Commit ca5f50e

Browse files
committed
Minor changes
1 parent 22f1231 commit ca5f50e

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,13 @@ variables:
99

1010
# Cache expiration: 14 days
1111
cache:
12-
key:
13-
files:
14-
- gradle/wrapper/gradle-wrapper.properties
15-
prefix: "$CI_JOB_NAME"
12+
key: "build-cache"
1613
paths:
1714
- cache/
18-
- .gradle/caches/
19-
- .gradle/notifications/
20-
- .gradle/wrapper/
2115
when: "always"
2216

2317
before_script: |
2418
# Install dependencies
25-
export GRADLE_USER_HOME="${PWD:?}/.gradle"
2619
apk add bash grep wget zip~=3.0 || exit "${?}"
2720
2821
include:
@@ -40,13 +33,14 @@ job-build-oss:
4033
rules:
4134
- if: $CI_COMMIT_BRANCH
4235
- if: $CI_COMMIT_TAG != "nightly"
43-
script: "./gradlew buildOtaOSS"
36+
cache: []
37+
script: "BUILD_TYPE='oss' './build.sh'"
4438

4539
job-build:
4640
stage: build
4741
rules:
4842
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
49-
script: "./gradlew buildOta"
43+
script: "BUILD_TYPE='full' './build.sh'"
5044
artifacts:
5145
paths:
5246
- output/*.zip*
@@ -62,7 +56,3 @@ sast:
6256
stage: test
6357
cache: []
6458
before_script: []
65-
66-
after_script:
67-
- rm -f "$GRADLE_USER_HOME/caches/modules-2/modules-2.lock"
68-
- rm -fr "$GRADLE_USER_HOME/caches/*/plugin-resolution/"

0 commit comments

Comments
 (0)