SAP / jenkins-library

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

feat(events): add step to emit events to GCP #4901

Closed CCFenner closed 5 months ago

CCFenner commented 5 months ago

This adds functionality to emit events to GCP and exposes it as a pipeline step.

It makes use of the trust between Vault and GCP to send messages with a federated token. The messages contain data that follows the CloudEvents specification adapted to the SAP ecosystem and makes use of the cloudevents/sdk-go.

It currently implements pipelinerunStarted and pipelinerunFinishedevents.

mscudlik commented 5 months ago

It seems like it is not possible to provide any publishing options:

From my understanding at least the ordering key is required - this is also possible via rest: https://cloud.google.com/pubsub/docs/publisher#rest_1

CCFenner commented 5 months ago

/go-it

CCFenner commented 5 months ago

/it-go

CCFenner commented 5 months ago

/it-go

sonarcloud[bot] commented 5 months 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