This plugin facilitates launching of mabl tests as a step in your Bamboo build. Your Bamboo build success or failure will be dependant on the success or failure of your mabl test deployment event.
- Within Bamboo, from any plan's
Configure tasks
page, add a new task- If you do not have a project and plan, set one up first under the Projects menu.
- Select
A Mabl Deployment
task - Input the ApiKey and unselect the field, this will populate the Environment and Application drop-downs
- Select at least 1 environment or application to proceed
- Hit Save
- Enable the task and the plan
Now builds from this plan will trigger Mabl test plan executions of the chosen configuration.
If executions are scheduled successfully, then the plugin will set the mabl.deployment.id
variable to correspond
to the deployment event ID in mabl.
If you have a proxy enabled for your bamboo installation, this plugin respects outbound proxy settings you have configured for your server as described in Atlassian's instructions.
For installations that require only the plugin's requests be sent through a proxy or through a different proxy server than the bamboo installations default proxy, you can configure the settings within the deployment task configuration. Basic authentication is supported if the proxy server requires credentials to handle the requests.
Note that once you configure a proxy either on a global level or inside the mabl for Bamboo task, the plugin will send all HTTP calls through the proxy. For example, this includes calls made to retrieve the list of environments when configuring the task.
See the Atlassian Docs about installing from the marketplace.
NOTE: You need to run on Java 8 with a version less than 255 (i.e. 1.8.0_345
will not work). Otherwise, you will run into this issue.
Install the Atlassian SDK
- Clone this repo && cd into it
- Build this repo by running
atlas-mvn package
atlas-run
and visit the provided url
[INFO] bamboo started successfully in 119s at http://$USER:6990/bamboo
[INFO] Type Ctrl-D to shutdown gracefully
[INFO] Type Ctrl-C to exit
Grab this container
docker pull atlassian/bamboo-server
Run these commands
docker volume create --name bambooVolume
docker run -v bambooVolume:/var/atlassian/application-data/bamboo --name="bamboo" --init -d -p 54663:54663 -p 8085:8085 atlassian/bamboo-server
docker start bamboo
If you are running on an M1 Mac, then you'll need an additional --platform linux/amd64
flag on the docker run
command.
docker volume create --name bambooVolume
docker run --platform linux/amd64 -v bambooVolume:/var/atlassian/application-data/bamboo --name="bamboo" --init -d -p 54663:54663 -p 8085:8085 atlassian/bamboo-server
docker start bamboo
You will need to create a Bamboo trial license here, which you will provide the server below.
Visit localhost:8085
to interact with Bamboo.
You'll need to follow here to setup your IDE to use atlas-mvn
You'll want to test this in the context of atlas-run
and in a container as the way urls are built are different between the two.
To login as an admin during testing, you can use the username "admin" and password "admin".
- Create a new branch for releasing the plugin.
- Remove
-SNAPSHOT
from the plugin version and update the<scm>
<tag>
version tobamboo-plugin-{currentVersion}
in the pom.xml file.currentVersion
should be in the form0.1.12
. - Commit and push changes (preferably with a commit message like
[maven-release-plugin] prepare release bamboo-plugin-{currentVersion}
). - Open branch for PR review and wait for approvals. Once ready to merge, perform the following steps.
- Run
atlas-mvn clean install
. - Upload the resulting
target/bamboo-plugin-$VERSION.jar
to the Atlassian marketplace. Make sure your version doesn't include-SNAPSHOT
if you're uploading manually since that is the development build. Uploading will require an admin to the mablhq Atlassian vendor account.- To manually upload a new version to the Atlassian marketplace,
Click on
Create version
button and upload the jar file. You will also need to set a unique build number for the release. - Most of the default options will be pre-filled, but change them if they are no longer applicable.
- For the
compatible to
field, choose the latest version of Bamboo.
- To manually upload a new version to the Atlassian marketplace,
Click on
- Tag the current commit with
git tag -a -m "[maven-release-plugin] bamboo-plugin-{currentVersion}" bamboo-plugin-{currentVersion}
and push the tag by runninggit push origin bamboo-plugin-{currentVersion}
. - Update the plugin version to
{nextVersion}-SNAPSHOT
, wherenextVersion
should be in the form0.1.13
. Commit and push changes (preferably with a commit message like[maven-release-plugin] prepare for next development iteration
). - Merge the branch. Alternatively, merge the branch after step 4, and open a new branch for step 8.
- Merge code into default branch and push
- Run
atlas-mvn clean install
- Run
atlas-release
This will update pom.xml with new version and tag the release with current version minus-SNAPSHOT
, before putting that back together with the latest version.