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

Fixes issue #125 where this plugin is nested inside another publisher #361

Merged
merged 2 commits into from
Oct 7, 2018

Conversation

andrewbonney
Copy link
Contributor

This is a fix for notifications failing when the Slack publisher is nested within another post-build action such as a conditional action or a template.

Unless I'm missing something it seems unnecessary to have a separate listener for build events outside of the core Notifier implementation. This may simply have been here for legacy reasons, but it makes it difficult to identify which Publisher(s) to run.

I'm going to run a few more tests on this locally in case I'm missing something obvious and breaking anything, but would welcome any comments.

@MichaelKueller
Copy link

I'm highly interested in this PR. What can I do to get it merged quicker?

@ericwengelking
Copy link

I'm very interested in this as well

@JohannaVarga
Copy link

Hi,
I'm also very interested in this. Could you please review and merge this branch? It would be awesome!

@ntulele
Copy link

ntulele commented Jun 27, 2018

I'd also love to have this reviewed & merged....

Copy link

@kasheylm kasheylm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@adamerstelle
Copy link

Really wanting this to be available, when is 2.4 going to be released?

Copy link
Contributor

@kmadel kmadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@kmadel kmadel merged commit 58cdffd into jenkinsci:master Oct 7, 2018
KreAch3R added a commit to KreAch3R/slack-plugin that referenced this pull request Dec 24, 2018
Without this, Notifier#perform runs the Slack message publish code too early,
resulting in messages like this:
```
test - jenkinsci#68 Success after 6.9 sec and counting (Open)
```
`isBuilding()` should be true in this instance.

Instead, always run the plugin with `runAfterFinalised=true.`
This restores the older behavior, (before jenkinsci#361, jenkinsci#125) where SlackListener run
the publish code after `isBuilding()` was false and the end message was:
```
test - jenkinsci#80 Success after 6 sec (Open)
```
timja pushed a commit that referenced this pull request Jan 3, 2019
Without this, Notifier#perform runs the Slack message publish code too early,
resulting in messages like this:
```
test - #68 Success after 6.9 sec and counting (Open)
```
`isBuilding()` should be true in this instance.

Instead, always run the plugin with `runAfterFinalised=true.`
This restores the older behavior, (before #361, #125) where SlackListener run
the publish code after `isBuilding()` was false and the end message was:
```
test - #80 Success after 6 sec (Open)
```
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

Successfully merging this pull request may close these issues.

8 participants