Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Incomplete
-
Jenkins ver. 2.73.2
email-ext 2.6.0
favorite 2.3.1
token-macro 2.3
Description
When passing the ${FAVORITE_USERS_EMAIL} macro in the 'to:' line of a pipeline call to email-ext, jenkins errors with: "FAVORITE_USERS_EMAIL" is not supported in this context.
I also cannot expand the ${FAVORITE_USERS_EMAIL} token using the 'tk' step to get the list of users who have favorited a job and include them in the email. The same error message is thrown.
See https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/java/hudson/plugins/emailext/plugins/content/FailedTestsContent.java#L46-L96 for an example of how to allow the token to work in pipeline jobs.