sgoertzen/sonar-break-maven-plugin

First run error

Closed this issue · 3 comments

Hi Shawn,

When the project is run the first time, I have the following error:
``
Caused by: java.io.FileNotFoundException: http://sonarqube.test3.a5f72df0.svc.dockerapp.io:9000/api/resources/index?resource=master:parent&metrics=quality_gate_details
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at com.sgoertzen.sonarbreak.QueryExecutor.fetchSonarStatus(QueryExecutor.java:66)
at com.sgoertzen.sonarbreak.QueryExecutor.fetchSonarStatusWithRetries(QueryExecutor.java:148)
at com.sgoertzen.sonarbreak.QueryExecutor.execute(QueryExecutor.java:131)
at com.sgoertzen.sonarbreak.SonarBreakMojo.execute(SonarBreakMojo.java:54)

Plugin checks every 10s (SONAR_PROCESSING_WAIT_TIME) until the set waitForProcessingSeconds expires. However the first results will be available only after they are processed which takes about 1 minute in my case. So the first check throws a FileNotFoundException.

I think loop should not be interrupted even if the previous checks throws any type of IOException.

Hi Shawn,

Would it be possible to fix this issue?

Thanks.

I'm out of the country for two weeks. I can look at it when I get back or
you are welcome to fix it yourself and I could accept the pull request into
the repo.

On Wed, Mar 30, 2016, 6:48 PM steelorbis notifications@github.com wrote:

Hi Shawn,

Would it be possible to fix this issue?

Thanks.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#12 (comment)

I did.