You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/odc-importing-codebase-from-git-to-create-application.adoc
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The resource name must be unique in a namespace. Modify the resource name if you
55
55
To set the default resource preference for importing an application, go to *User Preferences*->*Applications*->*Resource type* field. The *Serverless Deployment* option is displayed in the *Import from Git* form only if the {ServerlessOperatorName} is installed in your cluster. The *Resources* section is not available while creating a serverless function. For further details, refer to the {ServerlessProductName} documentation.
56
56
====
57
57
58
-
. In the *Pipelines* section, select *Add Pipeline*, and then click *Show Pipeline Visualization* to see the pipeline for the application. A default pipeline is selected, but you can choose the pipeline you want from the list of available pipelines for the application. If *Configure PAC* is checked and the GitHub App is set up, you can see *Use GitHub App* and *Setup a webhook* options. If GitHub App is not set up, you can see *Setup a webhook* option.
58
+
. In the *Pipelines* section, select *Add Pipeline*, and then click *Show Pipeline Visualization* to see the pipeline for the application. A default pipeline is selected, but you can choose the pipeline you want from the list of available pipelines for the application.
59
59
+
60
60
[NOTE]
61
61
====
@@ -64,9 +64,18 @@ The *Add pipeline* checkbox is checked and *Configure PAC* is selected by defaul
64
64
* Pipeline operator is installed
65
65
* `pipelines-as-code` is enabled
66
66
* `.tekton` directory is detected in the Git repository
67
-
68
67
====
69
68
69
+
70
+
. Add a webhook to your repository. If *Configure PAC* is checked and the GitHub App is set up, you can see the *Use GitHub App* and *Setup a webhook* options. If GitHub App is not set up, you can only see the *Setup a webhook* option:
71
+
72
+
.. Go to *Settings* -> *Webhooks* and click *Add webhook*.
73
+
.. Set the *Payload URL* to the Pipelines as Code controller public URL.
74
+
.. Select the content type as *application/json*.
75
+
.. Add a webhook secret and note it in an alternate location. With `openssl` installed on your local machine, generate a random secret.
76
+
.. Click *Let me select individual events* and select these events: *Commit comments*, *Issue comments*, *Pull request*, and *Pushes*.
77
+
.. Click *Add webhook*.
78
+
70
79
. Optional: In the *Advanced Options* section, the *Target port* and the *Create a route to the application* is selected by default so that you can access your application using a publicly available URL.
71
80
+
72
81
If your application does not expose its data on the default public port, 80, clear the check box, and set the target port number you want to expose.
0 commit comments