Skip to content

Commit

Permalink
ci: Sonar has complete report
Browse files Browse the repository at this point in the history
"Could not find ref 'master' in refs/heads, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis."

Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Jul 11, 2023
1 parent 37b3f05 commit 0bf40bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .jenkins/pipelines/sonar.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pipeline {
when { changeRequest() }
steps {
sh 'echo "Building Project and analyzing with Sonar"'
// Required by Sonar to compare coverage info, etc. with master
sh 'git remote add upstream https://github.com/eclipse/jkube.git'
sh 'git fetch upstream'
// Needs install instad of verify since ITs rely on artifacts from previous modules
sh './mvnw -V -B -e -Pjacoco,sonar install ' +
'-Dsonar.pullrequest.key=${CHANGE_ID} ' +
Expand Down

0 comments on commit 0bf40bd

Please sign in to comment.