-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Message to accept user defined variables #359
Comments
closing this issue, found an alternative way to handle this. |
@navinjoy care to elaborate? |
And @navinjoy was never seen again.. sigh |
Can you share? |
Also looking for a solution to this, anyone solve? |
I solved it via EnvInject plugin. Hopefully, you can use it in your setup. First, I perform my build steps. Then in the dedicated shell builder, I write necessary data for custom notification text into the temporary file in the job workspace in the format of the key=value. Next, I will use I can then access the variables from the file in the Slack's custom notification text parameter.
|
This does work for single lines, but for multiline environment variables using |
In the Jenkins build script I am exporting some data into a variable and want to use the value of that in Slack Custom Message but thats not working.
Ex:
Build script:
export myVar=hello
Slack Custom Message:
Your message is : $myVar
I can include jenkins env variables though...like... $BUILD_URL #
The text was updated successfully, but these errors were encountered: