...
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. A text table This looks best in Slack.
| |||||||||
Send to Slack | Assumes you already have a slack 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 URL to quickly get to the a build quicklywith 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 |
|
...