## Bamboo dataset generator - a tool that generates plans on Bamboo instance
Before you start, make sure you have installed [Maven](https://maven.apache.org/install.html).
Configuration located inside: [src/main/java/bamboogenerator/Main.java](src/main/java/bamboogenerator/Main.java)
**POM Configuration**
- Set the Bamboo version in the pom.xml file according to your Bamboo version.
e.g. configuration for version 10.0.0:
```
bamboo-specs-parent
10.0.0
```
pom.xml file location: [pom.xml](pom.xml)
**Client Configuration**
- `BAMBOO_SERVER_URL` - the URL of Bamboo
For TerraForm deployment URL should have port and postfix
```
BAMBOO_SERVER_URL = "http://my-bamboo.amazonaws.com:80/bamboo"
```
- `ADMIN_USER_NAME` - the username of admin account
**Generator Configuration**
- `PROJECTS_NUMBER` - the number of projects to generate
- `PLANS` - the number of plans to generate
- `PERCENT_OF_FAILED_PLANS` - the percent of plans to be generated as failed
---
**NOTE**
Please make sure you haven't changed `Generator Configuration` after initial generation.
In case you need another configuration you have to start from clean dataset.
The generator will check if you have plans on a Bamboo server that are out of the generated set,
it will fail execution if such plans exist.
---
**Generate Bamboo token**
Login as admin user, go to **Profile > Personal access tokens** and create a new token with the same
permissions as admin user.
**Run on Linux/Mac:**
export BAMBOO_TOKEN=newly_generarted_token
./run.sh
**Run on Windows:**
set BAMBOO_TOKEN=newly_generarted_token
run