A project is a set of plans that allow you to identify and group them logically. You can either choose an existing project or create a new one.
Create a New Project
- From the top menu bar, click Create->Create a new plan. On the Configure plan page, complete the build plan details as given below.
- Project: The name of your build project
- Plan name: The name of your build plan
- Plan key: The key for your build plan
- Plan description: A brief description of the build plan’s function or purpose
Clone an Existing Plan
You can clone an existing plan by making a copy of that plan and its entire configuration.
- From the top menu bar, click Create -> Clone an existing plan.
- Select a plan by using Plan to clone. You will be able to see plans for which you have the ‘Clone’ and/or ‘Admin’ plan permission.
- You can create a new project or choose an existing project for the plan.
- Enter details for the new plan.
- If you choose to enable the plan, the Bamboo will be instructed to start running builds of the plan, based on the plan’s trigger configuration.
- Click Create. This will display the ‘Plan Summary’ page for the new plan. This will make Bamboo to run initial build for your new plan automatically.
Adding Job and Task
- Click created Plan link.
- Go to Actions- > Configure plan option, as shown below.
- Click ‘Add Job’ link.
- Click ‘Create a new job’ option and provide the data in the required fields.
- Click created job link.
- To add task in the plan, click ‘Add Task’ button.
- Now, select any task types. For Example, click ‘Ant’ to execute a build using Apache Ant.
- Enter valid data into the fields.
- Click ‘Add new executable’ link and add the path of Ant into ‘Executable’ field.
- Enter directory name ‘AutomationProject’ into ‘Working sub directory’ field, where ‘AutomationProject’ is your selenium project directory.
- Click ‘Save’ button.
Copy Selenium Project into ‘bamboo-home’ Directory
- ‘Bamboo-home’ directory by default exist at this location : C:\Users\{user name}\bamboo-home\xml-data\build-dir
- Put your selenium project ‘AutomationProject’ into ‘TES1-DEM-TESJOB’
Run Plan
- Go to ‘Build -> All build plans’.
- Click created plan link.
- Click ‘Run -> Run Plan’ option, as shown below.
- If the run is successful, then it shows a message in green color.
- If the build is failed, then it shows a message in red color.
You may also like: How to Install and Configure Bamboo CI Server on Windows Machine?