Skip to content
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

Better customization for Slack messages V2 #388

Closed
Venutiwa opened this issue Jul 27, 2018 · 3 comments
Closed

Better customization for Slack messages V2 #388

Venutiwa opened this issue Jul 27, 2018 · 3 comments

Comments

@Venutiwa
Copy link

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

@samrocketman
Copy link
Member

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

It is unlikely that I will fix this issue soon.

@kmadel
Copy link
Contributor

kmadel commented Oct 8, 2018

see #401

But we could use some examples.

@kmadel kmadel closed this as completed Oct 8, 2018
@dezren39
Copy link

#359 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants