-
Notifications
You must be signed in to change notification settings - Fork 414
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
add "Include failed Tests" #166
Conversation
1d68ac0
to
49d22ad
Compare
Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests. |
49d22ad
to
ac4183d
Compare
Need some reviews on this one. |
+1 |
It would be good if you wrote a couple tests that actually tests your code. Otherwise, your code could be easily broken in the future. e.g. Test when the setting is enabled and test when it is disabled. |
Guys, I really really need this feature. |
Much of the code doesn't have tests. Which is a primary reason this code is in such a poor state. That and not having a clear direction or vision. This plugin is quickly approaching feature creep. It's unfortunate slack abandoned it. IMO it could use a complete rewrite with clear vision. Aside from my opinions I have no problems with this merging but I don't plan to merge it. I leave it to @kmadel. |
@SuperTux88 please resolve conflicts and rebase on |
Also, a few tests would be desirable if you don't wish this feature to be broken in the future. It helps prevent regressions by adding tests. |
ac4183d
to
4bf6c76
Compare
I don't need this anymore (because I no longer work in the company where we used slack), but I resolved the conflict and rebased. |
Thanks for stepping up to work on these PRs anyways :) |
5e960b9
to
4bf6c76
Compare
includes all failed tests when some tests failed. does nothing if no failed tests were found
4bf6c76
to
6b16777
Compare
Darn, GitHub pulled a fast one on me. Please rebase on Edit: nevermind; you beat me to it |
Yeah, I just realized that I rebased on the master before the other PR was merged, but should be the latest master now.
And thanks for your work on this plugin (even when I don't use it anymore). 👍 |
Thanks, I don't use it either which is why I stepped away from it. But the open PRs are a bit itchy for me. Do you still use Jenkins? |
Yes (private and for work). |
As thanks for your work, allow me to point out some scripts you may find useful.
Some example usage (assuming the scripts are in your #if on Linux install the espeak package
say_job_done.sh
#provision Jenkins (login information will be printed at the end of bootstrap)
provision_jenkins.sh bootstrap
#use job-wait to wait for a Jenkins job and then be audibly alerted
export JENKINS_WEB=https://jenkins.ci.cloudbees.com
job-wait -d https://jenkins.ci.cloudbees.com/job/plugins/job/slack-plugin/382/ ; say_job_done.sh Here's some example output from
Finally, here's a video in which I got positive feedback on. You may find it useful. Thanks again. |
Thanks :D |
Tested with https://github.com/samrocketman/jenkins-bootstrap-slack . Upgrading it works for me. |
Feel free to subscribe to #296 for updates related to Slack Plugin 2.2 release. |
Do you guys have any luck got test failures being attached to a slack post after the 2.2 release? No luck for me, Jenkins is able to display the test report but slack post is just "build failed after 20sec". Any advice? |
I tested this the best I could. Feel free to open an issue and @ mention the original author. |
includes all failed tests when some tests failed. does nothing if no failed tests were found