-
Notifications
You must be signed in to change notification settings - Fork 411
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
Always runAfterFinalized #462
Conversation
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) ```
@dshvedchenko can you test your environment with this commit? |
will do tomorrow, pls provide link to build |
Thank you, here it is: correct-publish-time.slack-plugin.zip |
@dshvedchenko Thanks for the detailed review! All the results look good and expected to me, did you find any problems with it? |
@KreAch3R No issues with FreeStyleJob were found at my configs |
Don't link to build like that, who knows what you put in that zip 😅 When the PR is open there is a HPI uploaded from ci.jenkins.io See: https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fslack-plugin/detail/master/97/artifacts |
Without this, Notifier#perform runs the Slack message publish code too early,
resulting in messages like this:
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:Refers: #446 (maybe #454) #455 #457