File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,23 @@ stages:
35
35
- build
36
36
- test
37
37
38
- build-ota -oss :
38
+ job-build -oss :
39
39
stage : build
40
- script : " ./gradlew buildOtaOSS"
41
40
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"
48
44
49
- build-ota :
45
+ job-build :
50
46
stage : build
47
+ rules :
48
+ - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
49
+ - if : $CI_COMMIT_TAG != "nightly"
51
50
script : " ./gradlew buildOta"
52
- only :
53
- - main
51
+ artifacts :
52
+ paths :
53
+ - output/*.zip*
54
+ expire_in : 3 days
54
55
55
56
# license_scanning:
56
57
# stage: test
@@ -60,6 +61,8 @@ build-ota:
60
61
61
62
sast :
62
63
stage : test
64
+ rules :
65
+ - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
63
66
artifacts :
64
67
paths :
65
68
- gl-sast-report.json
You can’t perform that action at this time.
0 commit comments