AmadeusITGroup / sonar-stash

Stash (BitBucket) plugin, a pull-request decorator which allows to integrate SonarQube violations directly into your pull-request
MIT License
165 stars 82 forks source link

"Unable to get comment linked to repo_name... Pull request 0 does not exist in Project/repo_name." #163

Closed hax0rdlux3 closed 6 years ago

hax0rdlux3 commented 6 years ago

Working with:

BitBucket on-prem, latest version

SonarQube on-prem 6.4

called via Jenkins jobs, which takes in PR ID as parameter and runs the SQ Scan

This repository has been used for the PoC and has had various branches and PR's removed at random, etc. Now when I run a SQ scan and try to use the StashIssueReportingPostJob it dies with the exception below as the PR #0 does indeed no longer exist

INFO: Executing post-job org.sonar.plugins.stash.StashIssueReportingPostJob ERROR: Unable to get Stash differential report from Stash org.sonar.plugins.stash.exceptions.StashClientException: Unable to get comment linked to #0. Received 404: com.atlassian.bitbucket.pull.NoSuch PullRequestException: Pull request 0 does not exist in Project/.

t-8ch commented 6 years ago

@hax0rdlux3 I am not sure what the plugin should do instead. You asked it to interact with a pull-request that does not exist and the plugin failed. Could you elaborate on your expectations?

hax0rdlux3 commented 6 years ago

@t-8ch Yeah, I did a really poor job of raising this as an issue... it turned out to be a repo issue anyway, and I meant to close this. Thx.