...
Bamboo notification support Is is an opportunity to do something after a build has completed. The Bamboo notification framework allows built-in and customized notifications to be triggered after the completion of the build. Bamboo also provides a number of built-in conditions that determine when notifications can be triggered. We are taking advantage of the notification protocol to allow CLI actions to be used triggered by the notification framework. While many CLI can be considered traditional notifications (like Hipchat sendMessage), the support provided is open ended and allows for any CLI action to run. This enables some unique scenarios that solves some long requested use cases involving doing things after a build has completed. With CLI conditional running of actions, even more advanced conditioning can be done to do things like running some action if a build was successful and different actions if a build was not successful.
...
Some new pseudo Bamboo variables have been defined to provide some additional variables that can be used in CLI Notifications.
Table plus |
---|
Pseudo Variable | Type | Values | Reference in CLI Notification | Reference in Bamboo Variable | Since |
---|
buildState | String | Successful, Failed, Unknown | ${bamboo.buildState} | ${bamboo_buildState} |
|
---|
isRebuild | String | Yes, No | ${bamboo.isBuild} | ${bamboo_isBuild} |
|
---|
restartCount | Integer | Number of times the build has been restarted | ${bamboo.restartCount} | ${bamboo_restartCount} |
|
---|
successfulTestCaseCount | Integer | Number of successful test cases | ${bamboo.successfulTestCaseCount} | ${bamboo_successfulTestCaseCount} | 8.0.0 |
---|
failedTestCaseCount | Integer | Number of failed test cases | ${bamboo.failedTestCaseCount} | ${bamboo_failedTestCaseCount} | 8.0.0 |
---|
quarantinedTestCaseCount | Integer | Number of quarantined test cases | ${bamboo.quarantinedTestCaseCount} | ${bamboo_quarentinedTestCaseCount} | 8.0.0 |
---|
skippedTestCaseCount | Integer | Number of skipped test cases | ${bamboo.skippedTestCaseCount} | ${bamboo_skippedTestCaseCount} | 8.0.0 |
---|
ignoredTestCaseCount | Integer | Number of ignored test cases | ${bamboo.ignoredTestCaseCount} | ${bamboo_ignoredTestCaseCount} | 8.0.0 |
---|
totalTestCaseCount | Integer | Number of total test cases | ${bamboo.totalTestCaseCount} | ${bamboo_totalTestCaseCount} | 8.0.0 |
---|
fixedTestCaseCount | Integer | Number of fixed test cases | ${bamboo.fixedTestCaseCount} | ${bamboo_fixedTestCaseCount} | 8.0.0 |
---|
Tip |
---|
In order to To avoid a Bamboo error, when referencing a pseudo variable in a standard Bamboo variable, use the alternate form of reference. This is because Bamboo tries to validate strings that look like bamboo Bamboo variables. |
|