Can Sonar pull code from my git repository and analyze periodically?
Asked Answered
C

1

6

I have my source repository hosted in GitHub. I now want my Sonar instance (deployed on Amazon EC2) to pull from the git repository periodically to analyze the codebase. The project is a simple JavaScript project, I do not want ANT, Maven or Jenkins to be involved, but just Sonar to pull code periodically.

Is this possible?

Cashbook answered 18/12, 2012 at 12:12 Comment(0)
H
5

Sonar has no built-on cron, nor any connector to SCM tools to retrieve source code. So retrieving sources and triggering an analysis is out of its scope: this is the responsibility of other tools like CI servers (Jenkins / Hudson / Team City / Bamboo / ...).

Hellish answered 18/12, 2012 at 13:0 Comment(2)
thanks.. after some searching I'm now falling back to Jenkins as an intermediary.Cashbook
You could also write a UNIX cron that pulls code from GitHub and launches Maven or Sonar Runner, but using Jenkins is far easier IMO.Hellish

© 2022 - 2024 — McMap. All rights reserved.