Commit eb4c5865 authored by Asad Ullah Khan's avatar Asad Ullah Khan

add images

parent dad90e5d
......@@ -16,7 +16,7 @@
* Create a paramertized Jenkin Job
* Create and API token for the user authentication that is required to trigger jenkins job
* Trigger Build remotely check box must checked at the pipleine configuration and a token must spcified there
![Jenkins Diagram](jenkins.png.png?raw=true "Jenkins Diagram")
![Jenkins Diagram](jenkins.png?raw=true "Jenkins Diagram")
## Setting up a Pub/Sub topic:
......@@ -32,13 +32,13 @@
gcloud config set project PROJECT_ID
* Create the Pub/Sub topic where notifications are published.
gcloud pubsub topics create trigger-email
gcloud pubsub topics create trigger-pipeline
* Specify the topic in an environment variable.
export TOPIC=projects/$PROJECT_ID/topics/trigger-email
export TOPIC=projects/$PROJECT_ID/topics/trigger-pipeline
* Create the subscription that notifies Cloud Functions to send an email or chat message when messages are published to the topic.
gcloud pubsub subscriptions create gcf-trigger-email-asia-east2-trigger-email-sub --topic trigger-email
gcloud pubsub subscriptions create gcf-trigger-pipeline-asia-east2-trigger-email-sub --topic trigger-pipeline
......@@ -59,10 +59,10 @@
* On the next page, set Runtime to Python 3.10.
* In the file list, click requirements.txt and add the following to the text field: sendgrid.[Text Wrapping Break][Text Wrapping Break]SendGrid requirements
* In the file list, click requirements.txt and add dependencies
* Click main.py and replace the contents with your code snippet.
* Navigate to the Entry point field and enter the name of the function in the code snippet (send_email_notification, in this example).
* Navigate to the Entry point field and enter the name of the function in the code snippet.
* Click Deploy. You are returned to the Cloud Functions list where you should see your new function. When a green check mark appears next to the function name, it has been successfully deployed. The process could take a few minutes.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment