How to get analysisID in sonar
<p>GET api/qualitygates/project_status call to sonar requires analysisId.
I am not able to figure out that how to get the same.
<a href="http://nemo.sonarqube.org/api_documentation/api/qualitygates/project_status" rel="nofollow">http://nemo.sonarqube.org/api_documentation/api/qualitygates/project_status</a></p>

<p>In report-task.txt  i have only this information created</p>

<pre><code>projectKey=org.cidemo.multispring:parent
serverUrl=http://localhost:9000
dashboardUrl=http://localhost:9000/dashboard/index/org.cidemo.multispring:parent
ceTaskId=AVI5GTgLuMgLdhRswoyi
ceTaskUrl=http://localhost:9000/api/ce/task?id=AVI5GTgLuMgLdhRswoyi
</code></pre>

<p>And no analysisid. There is nothing mentioned in the doc shared by you  as how to get this id. In my env i want to  check if code passed the quality-gate, and fail the build  if it dont passes.</p>

<p>I do not want to use this using Jenkins.I have created a pre-commit hook in which i am calling a sonar run when developer tries to commit and  if code do not pass the quality gate ,commit must be aborted.Let me know if there is a better way to do this.</p>