Issue
Using the ${TEST_COUNTS}
macro in plugin:email-ext results in nothing being printed out.
Environment
- CloudBees CI (CloudBees Core)
- CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
- CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
- CloudBees CI (CloudBees Core) on traditional platforms - Client controller
- CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
- CloudBees Jenkins Enterprise
- CloudBees Jenkins Enterprise - Managed controller
- CloudBees Jenkins Enterprise - Operations Center
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Distribution
- Jenkins LTS
Resolution
For the job where the TEST_COUNTS
macro is showing as blank, navigate to the configuration of the job and perform the following:
- Add a new “Post-Build Action”
- Select an action of type “Publish JUnit test result report”
- Ensure that you have filled out the “Test report XMLs” field correctly.
These steps are necessary because the macro relies on having the test results available to calculate it.
0 Comments