jenkinsci / hipchat-plugin

HipChat notification plugin for Jenkins
https://plugins.jenkins.io/hipchat/
54 stars 85 forks source link

TEST_COUNTS not working anymore #100

Closed sebzimmermann closed 7 years ago

sebzimmermann commented 7 years ago

Hi,

since some of the last upgrades, the TEST_COUNTS var aren't working anymore.

Before, the output was something like this:

PROJ-DTO #123 Build successful after 15 sec (Open) - Tests: 25 - Failed: 0

Now it looks like this:

PROJ-DTO #123 Build successful after 15 sec (Open) - Tests: ${TEST_COUNTS,var="total"} - Failed: ${TEST_COUNTS,var="fail"}

Any hints on how to fix this issue?

Jenkins version: 2.48 Plugin Version: 2.1.1

aldaris commented 7 years ago

Hmm, that sounds very strange. The TEST_COUNTS macro comes from the email-ext Jenkins plugin. I wonder if you have recently updated plugin or if you have it installed at the moment? Do you see TEST_COUNTS listed in the help message corresponding to the template settings?

sebzimmermann commented 7 years ago

Mailer Plugin is installed: image

And is activated aswell (even though recepient list is empty as we don't want to send mails). image

I don't see TEST_COUNTS listed in the help messages (is not derived from ${ENV,var="VARIABLENAME"}?).

aldaris commented 7 years ago

You need this plugin: email-ext

As long as the help text does not list the TEST_COUNTS token, it is not expected to work either.

sebzimmermann commented 7 years ago

Ah, now it's working as expected! Thank you very much!

aldaris commented 7 years ago

I will update the documentation so that it becomes clear that certain tokens are only available via other Jenkins plugins.