-
Notifications
You must be signed in to change notification settings - Fork 288
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
[Enhancement] Make build notification in chat show failed build command #1672
Comments
We can achieve this in the following ways: 1)Consume the logs of the current job and parse for the error, this is little bit complex as each build fail for different error.
|
Thanks @prudhvigodithi If you can show some examples of each it would be helpful for us to make a decision on which is suits our needs well. Thanks. |
Following Jenkins unit test breaks for the library created for this enhancement. Background: Created a shared library that a pipeline can inherit to parse the log for actual failure message and pass as input to slack publish shared library, once published a user can view the slack channel with following message Limitation: with this above setup we need to use the method So far able to mock
Bu this still fails |
Fixed, added detailed error message to publish to slack channel |
It would be easier for us to debug the failure of build pipelines without the need to log dive.
If the build bot is able to print the failed build command in notification chat, it would be easier to reproduce the issue and save time.
Ex:
Thanks.
The text was updated successfully, but these errors were encountered: