--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/L5CRdwV3foY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/f1231034-094c-4852-8b99-1e6bce5ec336%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/9ea5fd2f-2edb-4791-8ea8-a358818177af%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/L5CRdwV3foY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/3ee2be05-cee4-4c20-b621-f6aa81876724%40googlegroups.com.
The analysis report is processed asynchronously on SonarQube server side. So your code may likely get the quality gate of a past analysis.See the code of the "Publish report on VSTS" task for an idea of a correct implementation:
https://github.com/SonarSource/sonar-scanner-vsts/blob/471b9bb3fa2af818992fd0158d750b0938fce722/common/ts/publish-task.ts#L28++
2018-04-24 16:13 GMT+02:00 <daniel.s...@gmail.com>:
Workaround:--
Add a PowerShell task after the Run Code Analysis task with the next code:param([string]$SonarQubeProjectKey)$u="<<SonarQube url>>/api/measures/search?projectKeys=$($SonarQubeProjectKey)&metricKeys=alert_status"$r = Invoke-RestMethod -Uri $uif($r.measures.value -eq "ERROR"){throw "SonarQube analysis failed."}
On Monday, January 29, 2018 at 4:02:54 PM UTC+1, torp...@gmail.com wrote:Hi,I have now installed the new VSTS/TFS Extension (4.0+) and ran into the problem where I couldn't enable "Fail build on quality gate error" (or what it was called) since that checkbox is now gone. How do I enable it within the new extension?Would love to be able to do this server side (on our on-premise SonarQube installation) so that all builds always connected to this server would fail when the quality gate demands are not met, but I haven't found the option to do that either. (We only use TFS for our builds)/Emil
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/L5CRdwV3foY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/524bd4ff-1d56-4d1f-883b-9dc5212e2bbe%40googlegroups.com.
Fabrice Bellingard | SonarSource |
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ddcdc82e-6cc0-4f12-bbfd-1ec3222e6d5a%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a04b207d-574e-44d4-a622-b282cfccbba8%40googlegroups.com.