Bamboo CI
This guide will help you integrate Scandium into your Bamboo CI pipeline. With a few configuration tweaks, you can trigger your automated tests from a Scandium suite directly within your build plans.
What You’ll Achieve
By the end of this guide, your Bamboo build will:
Run Scandium test suites as part of your build plan.
Display test output in your Bamboo build logs.
Prerequisites
Before you begin, make sure you have:
A Scandium account with:
Your
API_TOKENA
PROJECT_IDandSUITE_ID
Bamboo CI installed and running
Administrator access to create/edit build plans
An agent that has
curl,bash, andjqinstalled
Step 1: Define Variables in Bamboo
In your build plan:
Navigate to your plan configuration.
Click Actions > Configure Plan.
Go to Variables and define the following:
Variable Name
Value / Description
API_TOKEN
Your Scandium API token
PROJECT_ID
Your Scandium project ID
SUITE_ID
Your Scandium test suite ID
HUB_URL
(Optional) Selenium Grid URL
STARTING_URL
(Optional) Starting URL for the tests
BROWSER
(Optional) chrome (default)
SCREENSHOT
(Optional) true or false
VARIABLES
(Optional) '{}' (as JSON string)
RETRY
(Optional) Number of retries on failure, e.g. 0
MAX_ATTEMPTS
(Optional) Max polling attempts, e.g. 30
WAIT_PERIOD
(Optional) Polling interval in seconds, e.g. 120
Step 2: Add Script Tasks to Run Scandium
In your build stage:
Add a Script task named
Install DependenciesScript Body:
sudo apt-get update && sudo apt-get install -y jqAdd another Script task named
Download Scandium ScriptScript Body:
SCRIPT_URL="https://raw.githubusercontent.com/GetScandium/files/refs/heads/main/scandium_script.sh"
curl -o scandium_script.sh $SCRIPT_URL
chmod +x scandium_script.shAdd a Script task named
Run Scandium ScriptScript Body:
./scandium_script.shStep 3: Trigger a Build
You can now trigger your Bamboo plan manually or via a VCS change. Watch the build logs for test output and status.
Troubleshooting Tips
Problem
Solution
❌ Missing required variable
Make sure required plan variables are defined (API_TOKEN, PROJECT_ID, SUITE_ID)
❌ Permission denied
Ensure the script has execute permission (chmod +x)
🕒 Stuck waiting
Adjust WAIT_PERIOD and MAX_ATTEMPTS plan variables
Last updated