SAP / jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
https://www.project-piper.io
Apache License 2.0
769 stars 583 forks source link

feat(gcpPublishEvent): Add additionalEventData param #4928

Closed jliempt closed 1 month ago

jliempt commented 1 month ago

Makes it possible to insert additional data into the eventData JSON, which is useful when the eventData comes from the pipeline env.

This also fixes the format of the "data" part of the CloudEvent. If you pass a string to cloudEvent.SetData(), it will be marshalled and ends up with duplicated escape characters (for example {\\\\"testKey\\\\": \\\\"testValue\\\\"}), which causes problems when unmarshalling the data. Passing a map[string]interface{} solves it.

Changes

jliempt commented 1 month ago

/it-go

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud