...
Identify critical builds | Focus on the most critical builds that need timely attention. There are multiple ways to specify what build plans should be included in the report.
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Choose columns to report | Select the minimum columns needed. getBuildReportList already minimizes the columns reported. In this example, we want a very targeted report so we remove the first 3 columns.
| ||||||||||||
Choose a date format | Specify a date format that best matches specific needs. We use a very concise format to minimize line length.
| ||||||||||||
Modify data | Format the data for the report. In this example, we are going to report as a text table, without wrapping, and with modified test result headings to minimize line length. This looks best in Slack.
| ||||||||||||
Send to Slack | Assumes you already have a Slack token for your Slack instance, acli configured to use the token, and access granted to allow the CLI to send to your channel - see Access Tokens and related information for SLACKCLI. We are using markdown code format to get fixed width lines with active links to click on the URL to quickly get to a build with a problem.
| ||||||||||||
Full example | We use a Bamboo plan with a script task. This assumes acli is on the path and configured appropriately to access the servers needed. This example uses linux style escaping. We use the CLI temp file for automatically handling of file output
| ||||||||||||
Results |
|
More Examples and Techniques
Append data from other projects or servers |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Show where report came from | Add the following to your script if you are running it from Bamboo
Result
| ||||||||||||
Use script variables | When running from a Bamboo using a script, you can use simple scripting to help standardize the acli action across multiple builds for similar reports. This highlights the key differences and makes it easier to read.
|
...