tests: Run SonarQube analysis only on main branch
This commit is contained in:
parent
21b6e95136
commit
d117b84dc3
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ SonarQube:
|
|||
stage: test
|
||||
extends: .terraform
|
||||
rules:
|
||||
- !reference [.upstream_rules, rules]
|
||||
- if: '$CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"'
|
||||
script:
|
||||
- schutzbot/sonarqube.sh
|
||||
variables:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue