How do I get the hostname into a jenkins email-ext subject line?

1k views Asked by At

How do I get the hostname into an email-ext subject line in jenkins?

I.e. I want something like:

`hostname` $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
1

There are 1 answers

3
Bruno Lavit On BEST ANSWER

Here is one solution :)

enter image description here

enter image description here

Tested in my Jenkins 2 instance, it's working.