Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions app/util/bamboo/bamboo_dataset_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Configuration located inside: [src/main/java/bamboogenerator/Main.java](src/main
- `ADMIN_USER_NAME` - the username of admin account


**Generator Configuration**
**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
Expand All @@ -26,14 +26,17 @@ The generator will check if you have plans on a Bamboo server that are out of th
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:**

run



set BAMBOO_TOKEN=newly_generarted_token
run
3 changes: 2 additions & 1 deletion docs/dc-apps-performance-toolkit-user-guide-bamboo.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ your app. For example, application setup screen or other one-time use cases are
If your app introduces new functionality for Bamboo entities, for example new task, it is important to extend base
dataset with your app specific functionality.

1. Follow installation instructions described in [bamboo dataset generator README.md](https://raw.githubusercontent.com/atlassian/dc-app-performance-toolkit/master/app/util/bamboo/bamboo_dataset_generator/README.md)
1. Open `app/util/bamboo/bamboo_dataset_generator/src/main/java/bamboogenerator/Main.java` and set:
- `BAMBOO_SERVER_URL`: url of Bamboo stack
- `ADMIN_USER_NAME`: username of admin user (default is `admin`)
Expand All @@ -274,7 +275,7 @@ permissions as admin user.
```
or
``` bash
set BAMBOO_TOKEN newly_generarted_token # for Windows
set BAMBOO_TOKEN=newly_generarted_token # for Windows
```
1. Open `app/util/bamboo/bamboo_dataset_generator/src/main/java/bamboogenerator/service/generator/plan/PlanGenerator.java`
file and modify plan template according to your app. e.g. add new task.
Expand Down