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
Branches
Tags
No related merge requests found
Pipeline #151800 canceled
...@@ -55,6 +55,7 @@ It is bound to the `test` stage, and uses the following variables: ...@@ -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_ | | :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` | | `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) | | `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 ### Automatic Branch Analysis & Merge Request Analysis
......
...@@ -52,6 +52,13 @@ ...@@ -52,6 +52,13 @@
"name": "SONAR_QUALITY_GATE_ENABLED", "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))._", "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" "type": "boolean"
},
{
"name": "SONAR_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
} }
], ],
"variants": [ "variants": [
......
...@@ -41,6 +41,9 @@ spec: ...@@ -41,6 +41,9 @@ spec:
_Uses `sonar.qualitygate.wait` parameter ([see doc](https://docs.sonarqube.org/latest/analysis/ci-integration-overview/#header-1))._ _Uses `sonar.qualitygate.wait` parameter ([see doc](https://docs.sonarqube.org/latest/analysis/ci-integration-overview/#header-1))._
type: boolean type: boolean
default: false default: false
sonar-job-tags:
description: tags to filter applicable runners for Sonar job
default: []
--- ---
workflow: workflow:
rules: rules:
...@@ -437,4 +440,5 @@ sonar: ...@@ -437,4 +440,5 @@ sonar:
$SONAR_BASE_ARGS $SONAR_BASE_ARGS
rules: rules:
- !reference [.test-policy, 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.
Please register or to comment