Failed to retrieve pull request information
Answered
Hi,
I am trying to create a build feature for pull requests from BitBucket. Unfortunately I'm keep getting this error when I'm testing the connection in the build features window.
The error message is:
Failed to retrieve pull request information; Exception: java.io.IOException: Pull request information retrieval failure due to HTTP error, status code 404: Not Found
Any idea what might be wrong? I will be gratefull for any help
Please sign in to leave a comment.
Hello Marcin,
Basing on the status code, it appears as the requested endpoint was not found on the BitBucket side. Could you please let me know if you are using BitBucket Cloud or on-premises Server installation (out of two, only the latter is supported by this feature)?
Hey Fedor,
I'm using BitBucket Cloud, so as I've seen here:
https://youtrack.jetbrains.com/issue/TW-57468?fbclid=IwAR2n0_7QiCK9APt0834JIHLqfW57thlWNfdpgDtZShU3hzL95xv7Q9Pnf54
this feature will be implemented in the next version of TeamCity.
Is there anything I can do to setup build feature for pull requests from BitBucket Cloud until this feature will be implemented in TeamCity? I did successfully setup everything that I need for my team - this is the only thing that is missing for us. Right now build command is triggered for each commit, but that not ideal solution, since my Local Agent storage is limited.
Lack of this feature is the only thing that is stopping me from selecting TeamCity as our main CI/CD solution.
Hello Marcin,
Unfortunately, as I could see that would not be possible to achieve via existing TeamCity functionality (mainly because BitBucket Cloud does not provide a ref to the pull request, unlike the BitBucket Server - please see this link for the details: https://jira.atlassian.com/browse/BCLOUD-5814). While we allow to fetch the pull requests via branch specification in the VCS root settings too, without the reference on the VCS side this feature would be useless.