feat: add SonarQube analysis stage to pipeline
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8a39e5a401
commit
e683be6771
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
|
@ -79,6 +79,28 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('SonarQube Analysis') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'sonarsource/sonar-scanner-cli:latest'
|
||||||
|
args '-u root'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
echo "🔍 Analyse SonarQube..."
|
||||||
|
withSonarQubeEnv('SonarQube') {
|
||||||
|
sh """
|
||||||
|
sonar-scanner \
|
||||||
|
-Dsonar.projectKey=the-tip-top-frontend \
|
||||||
|
-Dsonar.projectName='Thé Tip Top Frontend' \
|
||||||
|
-Dsonar.sources=. \
|
||||||
|
-Dsonar.exclusions=node_modules/**,.next/**,coverage/**,out/** \
|
||||||
|
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build Frontend') {
|
stage('Build Frontend') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user