jx: bitbucket cloud cannot query pull request status

I tried doing promotion to a bitbucket cloud based environment and the PR is created fine but it then fails querying the PR status:

+ jx promote -b --all-auto --timeout 1h --version 0.0.2
Promoting app demo5 version 0.0.2 to namespace jx-staging-bb2
Using pipeline: jstrachan/demo5/master build: #2
Cloning into '/home/jenkins/.jx/environments/jstrachan/environment-jx-staging-bb2'...
Found remote branch names master, HEAD -> origin/master, master
Switched to branch 'promote-demo5-0.0.2'
[promote-demo5-0.0.2 8d8c2af] Promote demo5 to version 0.0.2
 1 file changed, 8 insertions(+), 5 deletions(-)
remote: 
remote: Create pull request for promote-demo5-0.0.2:        
remote:   https://bitbucket.org/jstrachan/environment-jx-staging-bb2/pull-requests/new?source=promote-demo5-0.0.2&t=1        
remote: 
To https://bitbucket.org/jstrachan/environment-jx-staging-bb2.git
 * [new branch]      HEAD -> promote-demo5-0.0.2
Created Pull Request: https://bitbucket.org/jstrachan/environment-jx-staging-bb2/pull-requests/1

Using pipeline: jstrachan/demo5/master build: #2
error: Failed to query the Pull Request status for https://bitbucket.org/jstrachan/environment-jx-staging-bb2/pull-requests/1 Status: 404 Not Found, Body: {"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/"}}

I wonder if there’s a way to query the status for bitbucket? Maybe we have to use Jenkins itself to query the status if the bitbucket REST API doesn’t support it?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@jstrachan Please see my PR above. The PR changes have fixed this issue for me locally.