[Bamboo OnDemand Docs]
[Bamboo Knowledge Base Home]
The functionality discussed on this page is only available in the Bamboo 5.0 EAP beta release.
Bamboo provides a range of options that allow you to control your version naming scheme. You can specify how Bamboo handles version numbering, and control automatic incrementing between versions.
Bamboo では、以下の機能を利用できます。
Bamboo also allows you to manually override automatic version settings when you create a new version.
On this page:
Simple version naming allows you to specify a starting version number, for example 1.0, which Bamboo will automatically increment. When using simple version naming, Bamboo will increment the final number in the version name. For example:
| Version Name | Incremented Version name |
|---|---|
| 1 | 2 |
| 1.1 | 1.2 |
| 1.11 | 1.12 |
| 1.0.1 | 1.0.2 |
To configure simple version naming:
Click the Version naming button on the 'Deployment project configuration' screen to display the 'Version naming' screen:
Complete the 'Version naming' screen using the following fields:
フィールド | 説明 | Optional? |
|---|---|---|
| Create version name | The identification for the next version name that Bamboo will create. In simple version naming, you should use something straightforward like 1.0. | |
| Automatically increment with each new version | Check the 'Numbers' check box to automatically increment the version number according to the 'Next version name' field, as defined above. If you leave this box unchecked, then no version number incrementing will occur. | |
| プレビュー | This field allows you to preview what the next version name will look like. To view the preview, click on the Generate preview button next to the 'Create version name' field. 注意: 場合によっては、プレビューを利用できないことがあります。 | - |
[保存] ボタンをクリックして変更を保存します。
Version naming using variables allows you to develop more complex naming schemes, based upon variables set up within Bamboo. You can use global, plan and build variables in your versioning scheme.
例
You may have a plan variable called 'planvar' with a value of 'm6'. By including this variable key within the 'Next version name' field, Bamboo will automatically add the variable value to the next version name, and increment it accordingly:
| 変数キー | 変数の値 | Next Version Name | Next Version | Subsequent Version |
|---|---|---|---|---|
| planvar | m6 | 1.0-${bamboo.planvar} | 1.0-m6 | 1.1-m7 |
To configure version naming using variables:
Complete the 'Create Version name' field using the following data:
フィールド | 説明 | Optional? |
|---|---|---|
| Create version name | The identification for the next version name that Bamboo will create. In simple version naming, you should use something straightforward like 1.0. |
Complete the 'Version name' field using the following fields:
フィールド | 説明 | Optional? |
|---|---|---|
| Automatically increment with each new version | 1.Check the 'Numbers' check box to automatically increment the version number according to the 'Next version name' field, as defined above. If you leave this box unchecked, then no version number incrementing will occur. 2. Check the 'Variables' check box to include the associated variable in your automated version number incrementing plan. | |
| プレビュー | This field allows you to preview what the next version name will look like. To view the preview, click on the Generate preview button next to the 'Create version name' field. Note: In some cases a may not be available. | - |
[保存] ボタンをクリックして変更を保存します。
Example version naming schemes
Bamboo also allows you to use combinations of simple and variable naming ... The following table provides examples of combined naming schemes, and demonstrates how careful control of the Numbers and Variables checkboxes can be used to customise your scheme.
| 命名スキーム | Next version field | [Numbers(番号)] チェックボックス | [変数] チェックボックス | Variable value | Next version name | Subsequent version name |
|---|---|---|---|---|---|---|
| 固定された名前 | 1.0 | - | 1.0 | 1.0 | ||
| 本質的に一意の変数 | 1.0-${bamboo.buildNumber} | 13 | 1.0 ~ 13 | 1.0 ~ 13 | ||
| 番号のインクリメント | 1.0 | - | 1.0 | 1.1 | ||
| 番号のインクリメント + 固定変数 | 1.0-${bamboo.appName} | ${bamboo.appName} プランまたはグローバル変数: Awesome | 1.0-Awesome | 1.1-Awesome | ||
| 変数のインクリメント | 1.0-${bamboo.milestone} | ${bamboo.milestone} プランまたはグローバル変数: m6 | 1.0-m6 | 1.0-m7 | ||
| 番号と変数のインクリメント | 1.0-b${bamboo.appNumber} | ${bamboo.appNumber} ユーザー定義変数: 1567 | 1.0-b1567 | 1.1-b1568 |