Skip to content

Commit

Permalink
Remove sonarcloud scanner from java unit test as this is now a GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
cbosdo committed Oct 11, 2023
1 parent d457de6 commit 973f4e3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions jenkins_pipelines/uyuni_prs/Jenkinsfile_prs_java_pgsql_tests
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ pipeline {
sh "exit \$TESTS_RESULT"
}
}
stage('Scan code and tests results for sonarcloud') {
steps {
echo 'Run sonarcloud scanner'
sh "UYUNI_CLONE=`ls -d uyuni*`; " +
"PR_BASE=`curl -n https://api.github.com/repos/uyuni-project/uyuni/pulls/${params.PR_NUMBER} | grep -A3 '\"base\"' | grep '\"ref\"' | sed 's/^ *\"ref\": \"\\([^\"]*\\)\",/\\1/'`; " +
"PR_BRANCH=`curl -n https://api.github.com/repos/uyuni-project/uyuni/pulls/${params.PR_NUMBER} | grep -A3 '\"head\"' | grep '\"ref\"' | sed 's/^ *\"ref\": \"\\([^\"]*\\)\",/\\1/'`; " +
"cd \$UYUNI_CLONE; " +
"mkdir -p .sonar; " +
"source /var/lib/jenkins/.sonar-credentials; " +
"docker run --rm -v \$PWD:/usr/src " +
"-v \$PWD/../.sonar:/opt/sonar-scanner/.sonar " +
"-e SONAR_LOGIN " +
"sonarsource/sonar-scanner-cli " +
"-Dsonar.pullrequest.key=${params.PR_NUMBER} " +
"-Dsonar.pullrequest.branch=\$PR_BRANCH " +
"-Dsonar.pullrequest.base=\$PR_BASE"
}
}
}

post {
Expand Down

0 comments on commit 973f4e3

Please sign in to comment.