Re: sonar issue in gradle

134 views
Skip to first unread message

Nicolas Peru

unread,
Nov 24, 2017, 2:29:32 AM11/24/17
to appsso...@gmail.com, SonarQube
Hi, 

The error message states that you have a missing commit. So you may want to double check how your project is checked out by your CI server.

Cheers, 

Le jeu. 23 nov. 2017 à 19:50, <appsso...@gmail.com> a écrit :
Dear Team,

I have experiencing the issue with sonar in gradle on bamboo script. could you please update me if you have any idea on this


...............................................
.........................................................
.................................................
...........................................................
23-Nov-2017 13:38:13INFO: 15 files to be analyzed
23-Nov-2017 13:38:13INFO: 0/0 source files have been analyzed
23-Nov-2017 13:38:13ERROR: fatal: Invalid path '/centrify_home': No such file or directory
23-Nov-2017 13:38:13
23-Nov-2017 13:38:13INFO: 0/15 files analyzed
23-Nov-2017 13:38:13INFO: ------------------------------------------------------------------------
23-Nov-2017 13:38:13INFO: EXECUTION FAILURE
23-Nov-2017 13:38:13INFO: ------------------------------------------------------------------------
23-Nov-2017 13:38:13INFO: Total time: 5.610s
23-Nov-2017 13:38:13INFO: Final Memory: 54M/499M
23-Nov-2017 13:38:13INFO: ------------------------------------------------------------------------
23-Nov-2017 13:38:13ERROR: Error during SonarQube Scanner execution
23-Nov-2017 13:38:13java.lang.IllegalStateException: Unable to blame file [some file]
23-Nov-2017 13:38:13        at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:128)
23-Nov-2017 13:38:13        at org.sonarsource.scm.git.JGitBlameCommand.access$000(JGitBlameCommand.java:44)
23-Nov-2017 13:38:13        at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:112)
23-Nov-2017 13:38:13        at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:109)
23-Nov-2017 13:38:13        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
23-Nov-2017 13:38:13        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
23-Nov-2017 13:38:13        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
23-Nov-2017 13:38:13        at java.lang.Thread.run(Thread.java:745)
23-Nov-2017 13:38:13Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Missing commit 4b19d82e3982ac4e6e30bf9f8cb068c1c31f0756
23-Nov-2017 13:38:13        at org.eclipse.jgit.api.BlameCommand.call(BlameCommand.java:232)
23-Nov-2017 13:38:13        at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:126)
23-Nov-2017 13:38:13        ... 7 more
23-Nov-2017 13:38:13Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing commit 4b19d82e3982ac4e6e30bf9f8cb068c1c31f0756
23-Nov-2017 13:38:13        at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:147)
23-Nov-2017 13:38:13        at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:903)
23-Nov-2017 13:38:13        at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:155)
23-Nov-2017 13:38:13        at org.eclipse.jgit.revwalk.RevWalk.parseHeaders(RevWalk.java:1012)
23-Nov-2017 13:38:13        at org.eclipse.jgit.blame.BlameGenerator.processOne(BlameGenerator.java:601)
23-Nov-2017 13:38:13        at org.eclipse.jgit.blame.BlameGenerator.next(BlameGenerator.java:496)
23-Nov-2017 13:38:13        at org.eclipse.jgit.blame.BlameResult.computeAll(BlameResult.java:239)
23-Nov-2017 13:38:13        at org.eclipse.jgit.blame.BlameGenerator.computeBlameResult(BlameGenerator.java:450)
23-Nov-2017 13:38:13        at org.eclipse.jgit.api.BlameCommand.call(BlameCommand.java:230)
23-Nov-2017 13:38:13        ... 8 more
23-Nov-2017 13:38:13ERROR:
23-Nov-2017 13:38:13ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
23-Nov-2017 13:38:13Failing task since return code of [/apps/sdlctools/sonar-scanner-2.8/bin/sonar-scanner

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/4180b8bb-3e5b-4dd3-926b-d3d6fb90ef60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas Peru | SonarSource
Reply all
Reply to author
Forward
0 new messages