Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Bitbucket Pipelines

Bitbucket Pipelines triggers Testsigma test plans from a step in bitbucket-pipelines.yml. The step runs the shell script, which starts the plan and fetches the JUnit XML report.

Prerequisites

  • An API key and the test plan ID, set in the script (testsigma-cicd.sh).
  1. Open Pipelines: on your project, navigate to Repository > Pipelines.

  2. Create the pipeline: click Create your first pipeline and select Starter pipeline.

  3. Create the job: use this YML sample:

    bitbucket-pipelines.yml
    pipelines:
    default:
    - parallel:
    - step:
    name: 'Build and Test'
    script:
    - echo "Your build and test goes here..."
    - echo "Calling Shell Script of testsigma"
    - chmod a+x testsigma-cicd.sh
    - ./testsigma-cicd.sh
  4. Set the script inputs: in the shell script, provide the Test Plan ID and API Key.

  5. Run the job: click Commit. Once the job completes, the execution report is available as an XML report at the path set in the shell script.

Was this page helpful?