Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use bitbucket rest api in pipelines script

Truc Nguyen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2020

Hi, 

I want to set up a step in my pipelines where I can automatically raise a pull request from develop branch to master branch (as part of the release process). However, I cannot seem to find the solution when using with this REST API pull request . The problem, I think, is because the curl command is running in pipelines environment with bitbucket-pipelines user, and I have no idea what is the password for this user.

Please any one could help me with this issue?

 

Thanks,

Truc

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2020

Hi @Truc Nguyen ,

you can generate an BITBUCKET APP PASSWORD with `pull-request` write permissions.
And authenticate with BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD.

Or setup OAuth2 consumer.

Cheers,
Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events