This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Description
Hi all,
when i run sonarqube analysis on master branch i see, at the end of the pipeline, an unexpected job.

How i can remove it?
This not happens when use another branch, also with publishing enabled.
This is my yaml gitlab file
.quality_variables: &quality_variables
SONAR_URL: https://xxxxxxxxxxxxxx
.quality_template: &quality_template
stage: quality
image: ciricihq/gitlab-sonar-scanner
<<: *runner
dependencies:
- npm:test
cache: {}
before_script:
- echo "sonar.login=${SONAR_TOKEN}" >> sonar-project.properties
script:
- |
gitlab-sonar-scanner \
-Dsonar.gitlab.project_id=$CI_PROJECT_ID \
-Dsonar.gitlab.user_token=$GITLAB_TOKEN \
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
except:
variables:
- $SKIP_QUALITY == "true"
quality:preview:
<<: *quality_template
variables:
<<: *quality_variables
SONAR_ANALYSIS_MODE: "preview"
only:
refs:
- /^epic\/*/
- /^hotfix\/*/
- /^feature\/*/
- test
quality:publish:
<<: *quality_template
variables:
<<: *quality_variables
SONAR_ANALYSIS_MODE: "publish"
only:
refs:
- master
Regards