I loaded the EnvInject plugin and tried that before posting here.
Inside the shell script section, I set a variable called "subject" to to a
different
text string depending on outcomes within the shell script section.
I then did a printf "subject=$subject\n" >tmp.env
I then specified tmp.env on the first line of the EnvInject. This is all I
did for the EnvInject block. Did I need to fill in anything else?
I then used "editable email" and placed $subject in the subject line.
The email came in with a subject line of: $subject (not evaluated)
--
View this message in context:
http://jenkins.361315.n4.nabble.com/Using-variables-within-the-Jenkins-email-subject-lines-tp4641373p4641525.html