Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoCLI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
UI
DojoCLI
Merge requests
!10
Resolve "Add sonar integration"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Resolve "Add sonar integration"
5-add-sonar-integration
into
main
Overview
1
Commits
22
Pipelines
21
Changes
2
Closed
Resolve "Add sonar integration"
orestis.malaspin
requested to merge
5-add-sonar-integration
into
main
Feb 14, 2024
Overview
1
Commits
22
Pipelines
21
Changes
2
Closes
#5 (closed)
0
0
Merge request reports
Viewing commit
cb24de53
Show latest version
2 files
+
26
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
cb24de53
sonar integration
· cb24de53
orestis.malaspin
authored
Feb 14, 2024
NodeApp/.gitlab-ci/04_stageCodeQuality.yml
+
23
−
1
View file @ cb24de53
Show full file
@@ -9,4 +9,26 @@ code_quality:lint:
-
npm install
-
npm run lint
rules
:
-
if
:
'
$CI_COMMIT_TAG
=~
"/^$/"'
\ No newline at end of file
-
if
:
'
$CI_COMMIT_TAG
=~
"/^$/"'
code_quality:sonarqube
:
stage
:
code_quality
tags
:
-
code_quality
image
:
name
:
leadrien/isc-sonar-scanner-cli
entrypoint
:
[
"
"
]
variables
:
SONAR_USER_HOME
:
"
${CI_PROJECT_DIR}/.sonar"
# Defines the location of the analysis task cache
GIT_DEPTH
:
"
0"
# Tells git to fetch all the branches of the project, required by the analysis task
cache
:
key
:
"
${CI_JOB_NAME}"
paths
:
-
.sonar/cache
script
:
-
sonar-scanner
allow_failure
:
true
only
:
-
merge_requests
-
main
-
develop
Loading