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
Notification plugin stage status events don't include accurate material information for fields such as git shallow-clone #12574
Comments
Yeah, these notifications appear to be based on data captured in the database for an individual pipeline run; and I suspect the material specific values such as Do you have a need specifically for this field in a custom plugin you are writing, or just something weird you noticed? |
Yes, I am currently trying to develop a notification plugin. To expedite the build process, I am paying attention to the |
For validating configuration data like this, it's possibly better to achieve this by querying the GoCD APIs for materials, rather than relying on the notification data when every stage status changes. |
Yes, the API can fetch the correct status. Initially, the purpose of developing the plugin was to promptly detect when a stage fails to run. During the development process, I came across the shallow-clone parameter and planned to merge our initial detection functionality. However, it seems that this approach is not feasible at the moment. |
Issue Type
Summary
During the debugging process using the official example, I noticed that there is a discrepancy between the shallowclone value in the request body and the panel configuration result after the stage status event is triggered.
Environment
Basic environment details
gocd/gocd-server:v23.5.0
17
ubuntu 23.10
https://github.com/gocd-contrib/notification-skeleton-plugin
Additional Environment Details
Steps to Reproduce
cp /data/workspace/notification-skeleton-plugin-master/build/libs/notification-skeleton-plugin-0.1-SNAPSHOT.jar /data/gocd/plugins/external/
docker run -it --rm -p 8153:8153 -v /data/gocd:/godata gocd/gocd-server:v23.5.0
Expected Results
Actual Results
The correct configuration values are obtained in the notification plugin.
Possible Fix
Log snippets
-->
Code snippets/Screenshots
-->
Any other info
The text was updated successfully, but these errors were encountered: