Search code examples
jenkinsjenkins-email-ext

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


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!

Solution

  • Here is one solution :)

    enter image description here

    enter image description here

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