Atlassian Bamboo
Create a Bamboo plan to run a Maven-enabled automation package.
Click a step to view details.
To allow the Bamboo building agent to pull the source code of the automation package, you need to store the package in a version control system such as Bitbucket, Git, CVS, Microsoft Team Foundation Server (TFS), or Perforce Helix Core. This section uses Bitbucket as an example.
- Log in to Bamboo.
- Click Create > Create plan to create a new Bamboo plan.
-
On the Configure plan page, link the repository to the place where the automation source code is located.
- Click Configure Plan.
-
On the Configure job page, select Agent environment to run your builds.
- Click Create.
For a Maven building agent to run the automation package, you need to add the Maven building agent to the Bamboo plan.
-
When the plan creation completes, select Actions > Configure plan to continue the plan configuration.
- On the Configuration page, under Stages & Jobs, select Default Stage > Default Job.
-
On the Tasks tab, click Add Task to add a new task.
-
In the Tasks types dialog box, select the proper version of Maven.
-
On the task configuration page, provide the required Maven information. This includes the building goals and desired system properties that you want Maven to use.
The passing values can be Bamboo built-in or customized variables.
- Click Save to save the Maven task.
Bamboo lets you set customized variables on the Variables tab. You can later refer to these variables with ${bamboo.<Variable_Name>}
.
- On the Configuration page, on the Variables tab, provide the variable name and value for each variable you want to add.
-
Click Add.
You need to set the triggers that start a run of the Bamboo plan.
-
On the Configuration page, on the Triggers tab, click Add trigger.
- Configure the trigger as needed. The following triggers are the ones most often used:
Scheduled: If you want your automation package run at a specific time, select the Scheduled trigger type.
In the Schedule editor dialog box, specify the interval and time that you want your script to run.Repository polling: If you want your script to run whenever a designated repository is updated, select the Repository Polling trigger type.
Select how often you want polling to occur and which repository is polled. You can also specify that polling should occur after any other plan has passed.
-
Select Run > Run plan.