1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-10 10:50:11 +02:00
Jenkins shared library for Continuous Delivery pipelines.
Go to file
Christopher Fenner 0f83941765
feat(events): add step to emit events to GCP (#4901)
* feat(gcp): add step to send events to GCP (#4896)

* add gcp token handling

* add initial step

* publish events

* add test cases

* fix test case

---------

Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>

* feat(gcp): Generate and validate the GCP OIDC token (#4899)

* test setup for generation of jwt token

* oidc token generator

* push new step files

* formatted code

* removed toolchain and jose

* removed toolchain:go 1.22.2

---------

Co-authored-by: jliempt <>
Co-authored-by: D071696 <sachin.baral.ramesh@sap.com>
Co-authored-by: d071696 <153099976+d071696@users.noreply.github.com>

* feat(events): add pipeline start and end event (#4900)

* add gcp token handling

* add initial step

* publish events

* add test cases

* fix test case

* move files

* add possible values

* handle start and end event

* add sap events

* dependencies

---------

Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>

* log successful event publish

* remove dummy step

* prevent step from failing

* improve event creation

* improve event creation

* simplify eventing

* remove detailed events

* update parameter scope

* update go.sum

* fix test case

* add missing method

* refactor OIDC part

* add oidc.go to vault pkg

* mock OIDC token retrieval

* mock GCP functions

* update OIDC function name in Vault mocks

* get event data from CPE

* don't encode data payload in b64

* remove vault related changes

* remove vault changes from step code

* remove commented out code

* documentation/steps/gcpPublishEvent.md

* documentation/steps/gcpPublishEvent.md

* remove hardcoded eventData

* update roleID

* go generate

* add ordering key for pubsub event

---------

Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>
Co-authored-by: D071696 <sachin.baral.ramesh@sap.com>
Co-authored-by: d071696 <153099976+d071696@users.noreply.github.com>
Co-authored-by: jliempt <>
2024-05-06 09:28:28 +02:00
.github feat: bump go to 1.21 (#4846) 2024-04-19 03:17:39 +04:00
.hooks chore(go): add pre-commit hook (#1006) 2019-11-27 21:16:01 +01:00
.pipeline Update config.yml (#2371) 2020-11-13 16:51:25 +01:00
.reuse compliance with reuse (#1910) 2020-08-11 11:53:42 +02:00
cfg Deploy mkdocs when merging to master 2018-03-12 09:58:32 +01:00
cmd feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
consumer-test Integration Tests fail - edu.hm.hafner (#3071) 2021-08-25 20:51:54 +02:00
contrib Allow to trigger release manually (#1359) 2020-04-03 16:26:53 +02:00
documentation feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
integration feat: bump go to 1.21 (#4846) 2024-04-19 03:17:39 +04:00
LICENSES compliance with reuse (#1910) 2020-08-11 11:53:42 +02:00
pkg feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
resources feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
src/com/sap/piper feat: bump go to 1.21 (#4846) 2024-04-19 03:17:39 +04:00
template remove !#groovy header 2019-05-23 10:37:28 +02:00
test AAKaaS holistic pv check (#4893) 2024-04-22 13:12:38 +02:00
vars AAKaaS holistic pv check (#4893) 2024-04-22 13:12:38 +02:00
.codeclimate.yml chore(ci): add yamllint action (#2774) 2021-04-22 12:55:35 +02:00
.editorconfig Add golang implementation for karma tests (#919) 2019-10-25 14:58:59 +02:00
.gitignore refactor(orchestrator): Use singleton in orchestrator package and rename methods (#4639) 2024-01-09 16:01:15 +05:00
.log4brains.yml chore: prepare setup for future ADRs (#4054) 2022-11-02 14:30:34 +01:00
.markdownlint.yml chore(ci): add yamllint action (#2774) 2021-04-22 12:55:35 +02:00
.mockery.yaml fix(deps): update module github.com/influxdata/influxdb-client-go/v2 to v2.13.0 (#4737) 2024-01-22 14:54:34 +05:00
.yamllint.yml chore(ci): add yamllint action (#2774) 2021-04-22 12:55:35 +02:00
config.toml Add revive config for proper linting 2020-02-26 09:44:18 +01:00
DEVELOPMENT.md docs(development): Add info about release process (#4005) 2022-09-27 12:51:57 +02:00
Dockerfile feat: bump go to 1.21 (#4846) 2024-04-19 03:17:39 +04:00
go.mod feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
go.sum feat(events): add step to emit events to GCP (#4901) 2024-05-06 09:28:28 +02:00
LICENSE chore(license): update LICENSE text (#2855) 2021-05-26 09:58:12 +02:00
main.go Step generation: allow usage of go generate (#1793) 2020-07-17 08:06:11 +02:00
pom.xml chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.11 (#4792) 2024-02-02 09:41:04 +01:00
README.md fix(docs): fixing documentation for violating markdownlint rules. (#4559) 2023-09-08 12:07:46 +02:00
staticcheck.conf add staticcheck github action (#3605) 2022-03-07 14:52:20 +01:00

Maintainability Test Coverage Go Report Card REUSE status

Project Piper Repository

The Project "Piper" offers default pipelines to easily implement CI/CD processes integrating SAP systems. The corresponding "Shared Library" provides a set of "steps" to build your own scenarios beyond defaults.

User Documentation

If you want to view the User Documentation of Project Piper please follow this Piper Pages Link.

Known Issues

A list of known issues is available on the GitHub issues page of this project.

How to obtain support

Feel free to open new issues for feature requests, bugs or general feedback on the GitHub issues page of this project.

Register to our google group in order to get updates or for asking questions.

Contributing

Read and understand our contribution guidelines before opening a pull request.