Skip to content

Commit

Permalink
move sonarqube to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Spectrality authored Nov 7, 2017
1 parent 8a53473 commit 8a5888c
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions scripts/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,6 @@ node(""){
notifyObj = load "${workspaceDir}/ossim-ci/jenkins/pipeline/notify.groovy"
}

try {
stage('SonarQube analysis') {
withSonarQubeEnv('sonar_cloud') {
// requires SonarQube Scanner for Gradle 2.1+
// It's important to add --info because of SONARJNKNS-281
sh """
pushd ${workspaceDir}/${appName}/plugins/${appName}-plugin
./gradlew --info sonarqube -Dsonar.projectKey=${appName}
popd
"""
}
}
}
catch (e) {
echo e.toString()
}

try {
stage ("Publish Plugin Artifactory")
{
Expand All @@ -69,6 +52,22 @@ node(""){
currentBuild.result = "FAILED"
notifyObj?.notifyFailed()
}
try {
stage('SonarQube analysis') {
withSonarQubeEnv('sonar_cloud') {
// requires SonarQube Scanner for Gradle 2.1+
// It's important to add --info because of SONARJNKNS-281
sh """
pushd ${workspaceDir}/${appName}/plugins/${appName}-plugin
./gradlew --info sonarqube -Dsonar.projectKey=${appName}
popd
"""
}
}
}
catch (e) {
echo e.toString()
}
stage("Clean Workspace"){
step([$class: 'WsCleanup'])
}
Expand Down

0 comments on commit 8a5888c

Please sign in to comment.