sh '''
^^^
You are using a triple-single-quoted string. Replacement of groovy vars
happens only in single- or triple-double-quoted strings.
So use:
sh """
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1c8c7660-8963-4ad7-8bf2-f2e6ef50a099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.