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).
Configure the pipeline
Section titled “Configure the pipeline”-
Open Pipelines: on your project, navigate to Repository > Pipelines.
-
Create the pipeline: click Create your first pipeline and select Starter pipeline.
-
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 -
Set the script inputs: in the shell script, provide the Test Plan ID and API Key.
-
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?
Thanks for the feedback.