-
New Feature
-
Resolution: Not A Defect
-
Minor
-
None
Hello, I looked through the README.md file and doesn't look like you guys provided any insight on if and how you can send variables as a response body. For my use case, I want to send the project and build number to Mattermost. There is a Mattermost plugin already, but it seems as though I keep coming up to a "Failure" error and it's not very helpful because that's all it sends back.
I looked into using HTTP request plugin and that actually does seem to be sending notifications to my Mattermost channel. The issue is I don't know if the HTTP request plugin supports passing in variables from either Jenkins or environment variables.
I want to send a notification to my Mattermost channel using something like this.
Build Successful: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER}
Or
Build Failed: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER}