Skip to content
Snippets Groups Projects
Commit e7806177 authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

adds job tags

parent fbb0eb19
No related branches found
Tags 4.2 4.2.4
No related merge requests found
Pipeline #151800 canceled
......@@ -55,6 +55,7 @@ It is bound to the `test` stage, and uses the following variables:
| :lock: `SONAR_PASSWORD` | SonarQube password (depends on your authentication method) | _none_ |
| `base-args` / `SONAR_BASE_ARGS` | SonarQube [analysis arguments](https://docs.sonarqube.org/latest/analysis/analysis-parameters/) | `-Dsonar.links.homepage=${CI_PROJECT_URL} -Dsonar.links.ci=${CI_PROJECT_URL}/-/pipelines -Dsonar.links.issue=${CI_PROJECT_URL}/-/issues` |
| `quality-gate-enabled` / `SONAR_QUALITY_GATE_ENABLED` | Set to `true` to enable SonarQube [Quality Gate](https://docs.sonarqube.org/latest/user-guide/quality-gates/) verification.<br/>_Uses `sonar.qualitygate.wait` parameter ([see doc](https://docs.sonarqube.org/latest/analysis/ci-integration-overview/#header-1))._ | _none_ (disabled) |
| `sonar-job-tags` / `SONAR_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
### Automatic Branch Analysis & Merge Request Analysis
......
......@@ -52,6 +52,13 @@
"name": "SONAR_QUALITY_GATE_ENABLED",
"description": "Enables SonarQube [Quality Gate](https://docs.sonarqube.org/latest/user-guide/quality-gates/) verification.\n\n_Uses `sonar.qualitygate.wait` parameter ([see doc](https://docs.sonarqube.org/latest/analysis/ci-integration-overview/#header-1))._",
"type": "boolean"
},
{
"name": "SONAR_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
}
],
"variants": [
......
......@@ -41,6 +41,9 @@ spec:
_Uses `sonar.qualitygate.wait` parameter ([see doc](https://docs.sonarqube.org/latest/analysis/ci-integration-overview/#header-1))._
type: boolean
default: false
sonar-job-tags:
description: tags to filter applicable runners for Sonar job
default: []
---
workflow:
rules:
......@@ -437,4 +440,5 @@ sonar:
$SONAR_BASE_ARGS
rules:
- !reference [.test-policy, rules]
tags: $[[ inputs.sonar-job-tags ]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment