Skip to main content

Bitbucket Pipeline Integration


Bitbucket Pipelines is a CI/CD service that is built into Bitbucket. It enables you to build, test, and even deploy your code automatically based on a configuration file in your repository.

This document will show you how to integrate Bitbucket Pipelines with HyperExecute to greatly shorten your test cycles


Prerequisites:

  • You need to have a Bitbucket Cloud account.
  • Your workspace must have at least one repository.

How To Integrate Bitbucket Pipeline with Hyperexecute

You can use your own project to configure and test it. For demo purposes, we are using the sample repository.

Sample repo

Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the HyperExecute.

Image View on GitHub

1. Log into your Bitbucket cloud account.

Create New Project

2. Select a Repository

  • If you do not have a repository set up yet, select Repositories then select Create your own repository as shown below.
Create New Project
  • Fill in the required information, then select Create repository.
Create New Project

3. Create Your Pipeline

  • In your repository, go to the sidebar on the left and select Pipelines
Create New Project

  • Click Create your first pipeline to scroll down to the template section.
Create New Project

  • Select Starter pipeline

4. Define Your Environment Variables

  • In the sidebar, go into your repository settings.
  • In the Pipelines section, select Deployments
Create New Project
  • Click on any environment to:
    • Change its name
    • Set environment-specific deployment variables.
Create New Project
  • You can define custom variables that you can use in the YAML file. To add a variable, fill in the name, the value, check whether you want to encrypt it by clicking the secured box, and click Add.
Create New Project

5. Run Your Job

After configuring your environment variables, select Commit file at the bottom of your screen to commit and run your test job.

Create New Project
  • You will be redirected to the screen below
Create New Project

Below is an example of a Hyperexecute job that was triggered through the above pipeline:

Create New Project

Sample Bitbucket Workflow File

image: ubuntu:latest  # Adjust for macOS if needed

pipelines:
default:
branches:
- master # Adjust as needed
steps:
## Download Hyperexecute CLI (descriptive name)
- name: Download Hyperexecute CLI
script: |
wget https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
chmod u+x hyperexecute

## Run Hyperexecute tests (descriptive name)
- name: Run Hyperexecute Tests
script: |
./hyperexecute --user <your_username> --key <your_access_key> --config <your_yaml_file_path>

Run your tests at speeds never seen before. Happy testing! :)

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles