test reference
This commit is contained in:
@@ -14,7 +14,7 @@ version:
|
|||||||
extends: .version
|
extends: .version
|
||||||
stage: .pre
|
stage: .pre
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
- !reference [.default_rules, rules]
|
||||||
|
|
||||||
secret_detection:
|
secret_detection:
|
||||||
stage: validate
|
stage: validate
|
||||||
@@ -27,6 +27,4 @@ sonarqube:
|
|||||||
stage: validate
|
stage: validate
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
- !reference [.sonarqube_rules, rules]
|
||||||
exists:
|
|
||||||
- "sonar-project.properties"
|
|
||||||
|
|||||||
@@ -31,6 +31,6 @@ docker-push:
|
|||||||
- job: version
|
- job: version
|
||||||
artifacts: true
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
- if: $CI_PIPELINE_SOURCE == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
exists:
|
exists:
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ generate_sbom:
|
|||||||
optional: true
|
optional: true
|
||||||
artifacts: true
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
- !reference [.default_rules, mr-rules]
|
||||||
|
|
||||||
generate_cve:
|
generate_cve:
|
||||||
extends: .generate_cve
|
extends: .generate_cve
|
||||||
@@ -24,4 +24,4 @@ generate_cve:
|
|||||||
- job: generate_sbom
|
- job: generate_sbom
|
||||||
artifacts: true
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
- !reference [.default_rules, mr-rules]
|
||||||
|
|||||||
3
rules/mr-rules.yml
Normal file
3
rules/mr-rules.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.default_rules:
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
||||||
9
rules/rules.yml
Normal file
9
rules/rules.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
.default_rules:
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
|
||||||
|
.sonarqube_rules:
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
exists:
|
||||||
|
- "sonar-project.properties"
|
||||||
Reference in New Issue
Block a user