0

Jenkins version - 2.275 Email extension plugin version - 2.81

Examples of global variables and templates not getting resolved are -

  1. ${BUILD_NUMBER}
  2. ${BUILD_STATUS}
  3. groovy-html.template

Note - The problem is only seen with Outlook emails, for Gmail I am getting the desired email format.

**UPDTAE ** Strangely it has started to work again without making any changes.

JKC
  • 47
  • 8

2 Answers2

0

I faced same problem, be sure to put your string in double-quotes, otherwise variables are not processed, exg:

"${BUILD_NUMBER}"

I also noticed, that they removed variable 'BUILD_STATUS' completely from the global reference list, visible here: /pipeline-syntax/globals

its in named version available as:

"${currentBuild.currentResult}"
Nikolai Ehrhardt
  • 570
  • 4
  • 14
0

Strangely it has started to work again without making any changes.

JKC
  • 47
  • 8