add SonarQube analysis to the Jenkinsfile (#1264)
This commit is contained in:
parent
f7e10a3f44
commit
115887bd8d
|
@ -8,6 +8,11 @@ stage('Source') {
|
||||||
source = readProperties file: 'source.properties'
|
source = readProperties file: 'source.properties'
|
||||||
env.VERSION = "${source.VERSION}"
|
env.VERSION = "${source.VERSION}"
|
||||||
env.RELEASE = "${source.RELEASE}"
|
env.RELEASE = "${source.RELEASE}"
|
||||||
|
if (env.BRANCH_NAME == 'master') {
|
||||||
|
withSonarQubeEnv('SonarQube') {
|
||||||
|
sh './centreon-build/jobs/plugins/plugins-analysis.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
sonar.projectKey=centreon-plugins
|
||||||
|
sonar.projectName=Centreon Plugins
|
||||||
|
sonar.sources=.
|
Loading…
Reference in New Issue