You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Ref to #49
Found the below comment in the ref issue above. Facing the same challenge:
I want to use the environment variable which was created from environment injection plugin and I want to see the value of this variable(which is set during the execution) in the customized slack message notification.
Is there any other way to pass a variable value form the script to the slack notification?
@Nakilon environment variables exported inside the shell don't get exported into the Jenkins runtime. You'd have to set a build parameter MYVAR or a global variable MYVAR. There won't ever be support for that in this plugin due to the design of Jenkins.
@samrocketman I'm currently using the environment injection plugin to inject an environment from a bash command. I can use this everywhere but when slack posts it's message it still won't use the variable it will just say $DIAWI_LINK. Any clue how to fix this? I would say that this should work
The text was updated successfully, but these errors were encountered:
Hi @Venutiwa, I’ve not used the env inject plugin before so I’m not sure I completely understand your issue. What I do understand is there have been some similar Jenkins issues in the past about the env inject plugin.
I don’t contribute to the slack plugin any longer and am no longer a maintainer of the slack plugin. Ref #320
With Ref to #49
Found the below comment in the ref issue above. Facing the same challenge:
I want to use the environment variable which was created from environment injection plugin and I want to see the value of this variable(which is set during the execution) in the customized slack message notification.
Is there any other way to pass a variable value form the script to the slack notification?
@samrocketman I'm currently using the environment injection plugin to inject an environment from a bash command. I can use this everywhere but when slack posts it's message it still won't use the variable it will just say $DIAWI_LINK. Any clue how to fix this? I would say that this should work
The text was updated successfully, but these errors were encountered: