Skip to content

Commit

Permalink
further Jenkins changes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Sep 21, 2024
1 parent e834e4a commit ab798f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ pipeline {
maven 'apache-maven-latest'
jdk 'temurin-jdk17-latest'
}
triggers {
pollSCM('H/10 * * * *')
}
stages {
stage('SonarCloud') {
when {
allOf {
triggeredBy 'SCMTrigger'
// triggeredBy 'SCMTrigger'
not {
environment name: 'CHANGE_AUTHOR', value: 'dependabot[bot]'
}
Expand All @@ -28,8 +31,8 @@ pipeline {
withCredentials([string(credentialsId: 'sonarcloud-token', variable: 'SONARCLOUD_TOKEN')]) {
withSonarQubeEnv('SonarCloud.io') {
script {
def sonar_pr = ""
if(env.CHANGE_ID) {
def sonar_pr = ''
if (env.CHANGE_ID) {
sonar_pr += " -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.repository=eclipse/${env.PROJECT_NAME} -Dsonar.pullrequest.key=${env.CHANGE_ID} -Dsonar.pullrequest.branch=${env.CHANGE_BRANCH}"
}
sh '''
Expand Down

0 comments on commit ab798f5

Please sign in to comment.