jenkinsjenkins-pluginsemail-ext

Jenkins - Email-ext plugin display name of job in email


Is there an easy way to include the display name of the job in the email subject?

Maybe there is an environment variable for this?

I know it should be possible because the default functionality (email notification) in jenkins already provides this information in the email subject.


Solution

  • The correct environemnt variable which I was looking for is

    $BUILD_DISPLAY_NAME

    The display name of the current build, which is something like "#153" by default.

    Thanks at @maniframer to provide the link for getting more built-in environments.