GCP Cloud Build - How to read topic data in the cloudbuild
We are using pubsub to trigger the cloudbuild , now we need to read the data in the pubsub topic that triggered the cloud build
Thanks in advance
GCP Cloud Build - How to read topic data in the cloudbuild
We are using pubsub to trigger the cloudbuild , now we need to read the data in the pubsub topic that triggered the cloud build
Thanks in advance
Copyright © 2021 Jogjafile Inc.
Have a look at this Documentation on How to automate builds in response to Pub/Sub events.
As suggested in the Documentation make sure that the format of these messages indicates the real data is
body.message.data, and that PubsubMessage is accessible asbody.message.And also as per Doc
You can use the payload bindings and user defined substitutions to parse the payload info.