BitBucket
How can you use Kubiya to trigger pull request, merge branch, provide repo access or check the status of a pull request
What is Bitbucket
Bitbucket is a Git-based source code repository hosting service owned by Atlassian. The Bitbucket is used in access control, pull request, workflow control, integration of Jira, full rest API. Bitbucket provides unlimited private repositories for both Mercurial and Git (Distributed Version control systems). It also reduces clone times by supporting Git Large File Storage (LFS).
Things you can do using Kubiya
- Create pull requests
- Merge branch
- Provide Git repository access
- Revoke Git repository access
- Check the status of a pull request
How to Integrate Bitbucket to Kubiya
Example :

Action store reference
Reach out to your Kubiya engineer for a complete list of actions.
Sample actions
build_job(params: dict)
This function is used to trigger a build for a Jenkins job. It makes an API call to the Jenkins endpoint for building the specified job. The function takes the job name as a parameter and optionally additional parameters for parameterized jobs. It returns a message indicating the job name and the provided parameters.
Parameters:
params (dict): A dictionary containing the following keys:
'job_name' (required): The name of the Jenkins job to be built.
Additional parameters for parameterized jobs (optional).
get_jenkins_logs(params: dict)
This function is used to retrieve the console logs of a Jenkins job. It makes an API call to the Jenkins endpoint for retrieving the console text of the specified job. The function takes the job name and the Jenkins build number as parameters. It returns the console logs as a response.
Parameters:
params (dict): A dictionary containing the following keys:
'job_name' (required): The name of the Jenkins job.
'jenkins_number' (required): The build number of the Jenkins job.
Last modified 4mo ago