Using Atlassian Bamboo
The last continuous integration tool we are going to configure is Atlassian Bamboo. Bamboo is a commercial continuous integration server. There is a 30-day evaluation license available from the Atlassian website. We will see how we can configure Bamboo to use Gradle as a build tool for our Java project.
We can install Bamboo on our local computer. We first need to download the installation package from the Bamboo website. We can choose native installers for Mac OS X, Windows, and Linux. Alternatively, we can simply download a packaged version and unzip it to a directory on our computer. Finally, we can download a WAR file and deploy it to a web container.
Defining a build plan
Bamboo has no Gradle runner or plugin, but we can define a build plan and add a so-called script
task. A script
task can run any script as part of the build plan. To make sure Bamboo can build our Java project, we must add the Gradle wrapper scripts to the project.
We change our build.gradle
file...