Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Add trySlackSend function #67

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

glevand
Copy link
Contributor

@glevand glevand commented Feb 13, 2018

Fixes errors like these when the Slack notification plugin is not configured:

java.lang.NoSuchMethodError: No such DSL method 'slackSend' found

I only tested this in the Slack not configured state. Will channel = '' default to the plugin's configured channel?

@arithx
Copy link
Contributor

arithx commented Feb 14, 2018

I've confirmed that setting channel: '' will indeed use the plugin default

@glevand
Copy link
Contributor Author

glevand commented Feb 23, 2018

I found a problem with the trySlackSend() function when called from our SCM pipeline jobs. I changed it to take a Map argument which fixes the problem. Also, I added a color map in trySlackSend which allows for named colors in the trySlackSend calls.

@glevand
Copy link
Contributor Author

glevand commented Mar 8, 2018

Rebased to latest.

glevand added 3 commits May 1, 2018 15:31
Adds a new library function trySlackSend that echos the message to the
build log if the Slack Notification Plugin is not configured.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Switch all slackSend calls to trySlackSend.   Fixes errors like these
when the Slack Notification Plugin is not configured:

      java.lang.NoSuchMethodError: No such DSL method 'slackSend' found

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
@glevand glevand force-pushed the for-merge-slack branch from e9f4cdc to 8dae736 Compare May 1, 2018 22:33
@glevand
Copy link
Contributor Author

glevand commented May 1, 2018

Rebased to latest.

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

Successfully merging this pull request may close these issues.

2 participants