Skip to content

Commit 18ab7a4

Browse files
committed
Minor changes
1 parent 97a3e10 commit 18ab7a4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.gitlab-ci.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,23 @@ stages:
3535
- build
3636
- test
3737

38-
build-ota-oss:
38+
job-build-oss:
3939
stage: build
40-
script: "./gradlew buildOtaOSS"
4140
rules:
42-
- if: $CI_PIPELINE_SOURCE == "web"
43-
- if: $CI_COMMIT_TAG
44-
artifacts:
45-
paths:
46-
# - output/*.zip*
47-
expire_in: 1 day
41+
- if: $CI_COMMIT_BRANCH
42+
- if: $CI_COMMIT_TAG != "nightly"
43+
script: "./gradlew buildOtaOSS"
4844

49-
build-ota:
45+
job-build:
5046
stage: build
47+
rules:
48+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
49+
- if: $CI_COMMIT_TAG != "nightly"
5150
script: "./gradlew buildOta"
52-
only:
53-
- main
51+
artifacts:
52+
paths:
53+
- output/*.zip*
54+
expire_in: 3 days
5455

5556
# license_scanning:
5657
# stage: test
@@ -60,6 +61,8 @@ build-ota:
6061

6162
sast:
6263
stage: test
64+
rules:
65+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
6366
artifacts:
6467
paths:
6568
- gl-sast-report.json

0 commit comments

Comments
 (0)