You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
chadlwilson
changed the title
GoCD notification plugin is unable to accept the correct shallow-clone.
Notification plugin stage status events don't include accurate material information for fields such as git shallow-clone
Mar 5, 2024
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 shallow-clone are not captured for every individual stage run, yet still misleadingly included in the serialized configuration.
Do you have a need specifically for this field in a custom plugin you are writing, or just something weird you noticed?
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 shallow-clone are not captured for every individual stage run, yet still misleadingly included in the serialized configuration.
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 shallow-clone.
Yes, I am currently trying to develop a notification plugin. To expedite the build process, I am paying attention to the shallow-clone.
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, I am currently trying to develop a notification plugin. To expedite the build process, I am paying attention to the shallow-clone.
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: