|
You will need to prepare the Tomcat server before Bamboo can manage and deploy applications to it.
Download the Tomcat 7 distribution and unzip it on your file system.
Add a new Tomcat user for Bamboo to use the Tomcat Application Manager by adding the following line in conf/tomcat-users.xml between the <tomcat-users> tags:
<user username=”bamboo” password=”bamboo” roles=”manager-script,manager-gui”/> |
bin/startup.sh on Linux or Mac, or bin/startup.bat on Windows.You use Tomcat deployment tasks in the context of a job in a build plan in Bamboo. This plan should generate a deployable artifact, such as a WAR file. To deploy the artifact, you add a Tomcat deploy task to the plan, as follows:
Configure the Tomcat task settings, as described below.
Click Save.
To deploy the application, simply run the plan.
You can check that the deployment has been successful by:
Navigating to the logs for the job. Towards the end you should see something like:
> Deploying application with war file ‘target/tomcat-test-0.1.war’ to context ‘/myapp’ to server [http://localhost:8080/manager/](http://localhost:8080/manager/) > Application was successfully deployed. |
This indicates that Bamboo completed the task successfully.
Now, browse to the expected address for your application. You should see the welcome page.
Configuring the Tomcat tasksThe Tomcat Deploy, Start, Stop, Undeploy and Reload tasks each make use of some or all of the following configuration settings:
|