Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin does not submit PR status Azure #503

Closed
narkonst opened this issue Nov 30, 2021 · 1 comment
Closed

plugin does not submit PR status Azure #503

narkonst opened this issue Nov 30, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@narkonst
Copy link

Describe the bug
Plugin does not submit PR status Azure

Software Versions

  • SonarQube Version: 8.9.3.48735
  • Plugin Version: 1.8.1

Additional context
ce.log
`2021.11.30 13:11:02 INFO ce[AX1vroc4_LFg4jSRZHma][c.g.m.s.p.c.p.PullRequestPostAnalysisTask] using pull request decorator com.github.mc1arke.sonarqube.plugin.ce.pullrequest.azuredevops.AzureDevOpsPullRequestDecorator

2021.11.30 13:11:03 ERROR ce[AX1vroc4_LFg4jSRZHma][c.g.m.s.p.c.p.a.AzureDevopsRestClient] Azure Devops response status did not match expected value. Expected: 200\r\nHTTP/1.1 400 Bad Request\r\n{"$id":"1","innerException":null,"message":"The requested version "4.1" of the resource is under preview. The -preview flag must be supplied in the api-version for such requests. For example: "4.1-preview"","typeName":"Microsoft.VisualStudio.Services.WebApi.VssInvalidPreviewVersionException, Microsoft.VisualStudio.Services.WebApi","typeKey":"VssInvalidPreviewVersionException","errorCode":0,"eventId":3000}

2021.11.30 13:11:03 ERROR ce[AX1vroc4_LFg4jSRZHma][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Execution of task class com.github.mc1arke.sonarqube.plugin.ce.pullrequest.PullRequestPostAnalysisTask failed
java.lang.IllegalStateException: An unexpected response code was returned from the Azure Devops API - Expected: 200, Got: 400 at com.github.mc1arke.sonarqube.plugin.ce.pullrequest.azuredevops.AzureDevopsRestClient.validateResponse(AzureDevopsRestClient.java:157)`

@narkonst narkonst added the bug Something isn't working label Nov 30, 2021
@mc1arke mc1arke added the duplicate This issue or pull request already exists label Dec 14, 2021
@mc1arke
Copy link
Owner

mc1arke commented Dec 14, 2021

Duplicate of #442

@mc1arke mc1arke closed this as completed Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants