Skip to content
Snippets Groups Projects

feat: Add SonarCloud bindings

2 files
+ 224
194
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 27
1
@@ -113,7 +113,33 @@ pipeline {
}
stages {
stage('Build project') {
stage('Build with Sonarcloud scan') {
when {
branch 'main'
}
steps {
container('buildcontainer') {
readTrusted 'Makefile'
readTrusted 'pom.xml'
readTrusted 'package.json'
sh 'make compile-test-resources'
withCredentials([string(credentialsId: 'sonarcloud-token-eclipsefdn-mailing-lists-api', variable: 'SONAR_TOKEN')]) {
sh 'mvn clean verify -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.token=${SONAR_TOKEN}'
}
stash name: "target", includes: "target/**/*"
}
}
}
stage('Build without Sonarcloud scan') {
when {
not {
branch 'main'
}
}
steps {
container('buildcontainer') {
readTrusted 'Makefile'
Loading