mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 14:15:29 +02:00
add SonarQube analysis to the Jenkinsfile (#1264)
This commit is contained in:
parent
f7e10a3f44
commit
115887bd8d
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -8,6 +8,11 @@ stage('Source') {
|
||||
source = readProperties file: 'source.properties'
|
||||
env.VERSION = "${source.VERSION}"
|
||||
env.RELEASE = "${source.RELEASE}"
|
||||
if (env.BRANCH_NAME == 'master') {
|
||||
withSonarQubeEnv('SonarQube') {
|
||||
sh './centreon-build/jobs/plugins/plugins-analysis.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
3
sonar-project.properties
Normal file
3
sonar-project.properties
Normal file
@ -0,0 +1,3 @@
|
||||
sonar.projectKey=centreon-plugins
|
||||
sonar.projectName=Centreon Plugins
|
||||
sonar.sources=.
|
Loading…
x
Reference in New Issue
Block a user