Skip to content

Commit

Permalink
Reverted sonar cahnges to jeniks file (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
azoitl committed Nov 14, 2023
1 parent 2f9e0b6 commit f09b6c2
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,15 @@ pipeline {

stage('Build') {
steps {
withCredentials([file(credentialsId: 'SonarCloud-token-for-gef', variable: 'SONARCLOUD_TOKEN')]) {
withSonarQubeEnv(installationName: 'sonar server', envOnly:false){
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh '''
export GDK_BACKEND=x11
mvn clean verify -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-DapiBaselineTargetDirectory=${WORKSPACE} \
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
-Dproject.build.sourceEncoding=UTF-8 \
-Peclipse-sign \
-B sonar:sonar -Dsonar.projectKey=gef-classic -Dsonar.organization=eclipse -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.login=${SONARCLOUD_TOKEN}
'''
}
}
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh '''
export GDK_BACKEND=x11
mvn clean verify -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-DapiBaselineTargetDirectory=${WORKSPACE} \
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
-Dproject.build.sourceEncoding=UTF-8 \
-Peclipse-sign
'''
}
}
post {
Expand Down

0 comments on commit f09b6c2

Please sign in to comment.