Closed Redirts closed 5 years ago
You are using single quotes '' in message -> env.JOB_NAME + 'Jenkins build failed! \n User: ${author_name}' Single quote does not resolve variables defind in ${}. Instead use double quotes "" in message -> env.JOB_NAME + "Jenkins build failed! \n User: ${author_name}"
This is how groovy works. Please try above change and let me know
Works
I have a pipeline script like this:
The echo prints fine but the google notification message prints:
What I am missing here?