Reputation: 2625
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, 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. is this something even possible? like does bitbucket provide its pipelines user password ? I couldn't find anywhere.
Upvotes: 0
Views: 2247
Reputation: 183
You will need to create an App password for the user that is supposed to raise the pull request. (https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) You can then inject username and password as a variable into pipelines. https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html Make sure to make that variable a secured variable so the password can't be viewed!
Upvotes: 1