Skip to content

Commit 3ee79cb

Browse files
authored
Merge pull request #59562 from shreyasiddhartha/RHDEVDOCS-5250
Changes for RHDEVDOCS-5250: Doc; Configure pipelines-as-code on Git import (addition)
2 parents 334e0d0 + 557ca0b commit 3ee79cb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

modules/odc-importing-codebase-from-git-to-create-application.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The resource name must be unique in a namespace. Modify the resource name if you
5555
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.
5656
====
5757
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.
5959
+
6060
[NOTE]
6161
====
@@ -64,9 +64,18 @@ The *Add pipeline* checkbox is checked and *Configure PAC* is selected by defaul
6464
* Pipeline operator is installed
6565
* `pipelines-as-code` is enabled
6666
* `.tekton` directory is detected in the Git repository
67-
6867
====
6968
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+
7079
. 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.
7180
+
7281
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

Comments
 (0)