Skip to content

Commit

Permalink
change jenkins file
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorkim committed Jul 18, 2018
1 parent 3c31db6 commit a1e1c11
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,14 @@ pipeline {
docker {
image 'maven:3-alpine'
}

}
stages {
stage('SonarQube analysis') {
when { changeRequest() }
steps {
script {
echo "${env.CHANGE_ID}"
def scannerHome = tool "sonarqube-scanner";
withSonarQubeEnv("sonar") {
echo "$env.CHANGE_ID"
echo "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
"-Dsonar.sourceEncoding=UTF-8 " +
"-Dsonar.analysis.mode=preview " +
"-Dsonar.github.repository=entrylabs/entry-hw " +
"-Dsonar.github.endpoint=https://api.github.com " +
"-Dsonar.github.oauth=$GH_TOKEN " +
"-Dsonar.issuesReport.console.enable=true " +
"-Dsonar.github.disableInlineComments=true " +
"-Dsonar.github.pullRequest=$env.CHANGE_ID " +
"-Dsonar.sources=app "
sh "${scannerHome}/bin/sonar-scanner " +
"-Dsonar.projectKey=entry.entryHW " +
"-Dsonar.projectName=EntryHW " +
Expand All @@ -39,7 +25,6 @@ pipeline {
"-Dsonar.sources=app "
}
}

}
}
}
Expand Down

0 comments on commit a1e1c11

Please sign in to comment.