Skip to content

Commit

Permalink
Merge branch 'sonarqube_integration' into 'main'
Browse files Browse the repository at this point in the history
Sonarqube integration

See merge request documentation/uilicious-docs-v3!23
  • Loading branch information
Tai Shi Ling committed Nov 10, 2023
2 parents ed39781 + bd91168 commit 2b390ff
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,37 @@ preview-env-deploy:
- preview-merge
except:
- main
- sonarqube_integration


#======================================================
# Sonarqube integration
#======================================================
sonarqube-build:
stage: build
image:
name: uilicious/internal-alpine-base:latest
entrypoint: [""]
variables:
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
script:
- cp -r .vuepress/ vuepress/
artifacts:
paths:
- vuepress/
expire_in: 24 hour
allow_failure: true
only:
- sonarqube_integration
- merge_requests
- master
- main
- dev


sonarqube-check:
stage: sonarqube-check
needs: [sonarqube-build]
image:
name: sonarsource/sonar-scanner-cli:5.0
entrypoint: [""]
Expand All @@ -213,6 +237,7 @@ sonarqube-check:
- sonar-scanner
allow_failure: true
only:
- sonarqube_integration
- merge_requests
- master
- main
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sonar.projectKey=documentation_uilicious-docs-v3_AYsivnluAwe-aIyL34kw
sonar.qualitygate.wait=true
# sonar.sources=.vuepress/

0 comments on commit 2b390ff

Please sign in to comment.