Skip to content

Commit 6d6036c

Browse files
authored
Merge pull request #62463 from abrennan89/RHDEVDOCS-5518
RHDEVDOCS-5518: Documenting Pipelines templates in the admin console
2 parents 7bb6aaa + ac095f6 commit 6d6036c

17 files changed

+115
-157
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,8 +1920,8 @@ Topics:
19201920
File: remote-pipelines-tasks-resolvers
19211921
- Name: Using Pipelines as Code
19221922
File: using-pipelines-as-code
1923-
- Name: Working with OpenShift Pipelines using the Developer perspective
1924-
File: working-with-pipelines-using-the-developer-perspective
1923+
- Name: Working with OpenShift Pipelines in the web console
1924+
File: working-with-pipelines-web-console
19251925
- Name: Customizing configurations in the TektonConfig custom resource
19261926
File: customizing-configurations-in-the-tektonconfig-cr
19271927
- Name: Reducing resource consumption of OpenShift Pipelines

cicd/pipelines/creating-applications-with-cicd-pipelines.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ include::modules/op-validating-pull-requests-using-GitHub-interceptors.adoc[leve
8181
== Additional resources
8282

8383
* To include {pac} along with the application source code in the same repository, see xref:../../cicd/pipelines/using-pipelines-as-code.adoc#using-pipelines-as-code[Using {pac}].
84-
* For more details on pipelines in the *Developer* perspective, see the xref:../../cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc#working-with-pipelines-using-the-developer-perspective[working with pipelines in the *Developer* perspective] section.
84+
* For more details on pipelines in the *Developer* perspective, see the xref:../../cicd/pipelines/working-with-pipelines-web-console.adoc#working-with-pipelines-web-console[working with pipelines in the web console] section.
8585
* To learn more about Security Context Constraints (SCCs), see the xref:../../authentication/managing-security-context-constraints.adoc#managing-pod-security-policies[Managing Security Context Constraints] section.
8686
* For more examples of reusable tasks, see the link:https://github.com/openshift/pipelines-catalog[OpenShift Catalog] repository. Additionally, you can also see the Tekton Catalog in the Tekton project.
8787
* To install and deploy a custom instance of Tekton Hub for reusable tasks and pipelines, see xref:../../cicd/pipelines/using-tekton-hub-with-openshift-pipelines.adoc#using-tekton-hub-with-openshift-pipelines[Using {tekton-hub} with {pipelines-title}].

cicd/pipelines/customizing-configurations-in-the-tektonconfig-cr.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ include::modules/op-annotations-for-automatic-pruning-taskruns-pipelineruns.adoc
5252

5353
* xref:../../cicd/pipelines/authenticating-pipelines-using-git-secret.adoc#op-configuring-ssh-authentication-for-git_authenticating-pipelines-using-git-secret[Configuring SSH authentication for Git]
5454
* xref:../../cicd/pipelines/managing-nonversioned-and-versioned-cluster-tasks.adoc#managing-nonversioned-and-versioned-cluster-tasks[Managing non-versioned and versioned cluster tasks]
55-
* xref:../../cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc#using-custom-pipeline-template-for-git-import_working-with-pipelines-using-the-developer-perspective[Using a custom pipeline template for creating and deploying an application from a Git repository]
5655
* xref:../../applications/pruning-objects.adoc#pruning-objects[Pruning objects to reclaim resources]
56+
* xref:../../cicd/pipelines/working-with-pipelines-web-console.adoc#op-creating-pipeline-templates-admin-console_working-with-pipelines-web-console[Creating pipeline templates in the Administrator perspective]

cicd/pipelines/working-with-pipelines-using-the-developer-perspective.adoc

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
:_content-type: ASSEMBLY
2+
[id="working-with-pipelines-web-console"]
3+
= Working with {pipelines-title} in the web console
4+
include::_attributes/common-attributes.adoc[]
5+
:context: working-with-pipelines-web-console
6+
7+
toc::[]
8+
9+
You can use the *Administrator* or *Developer* perspective to create and modify `Pipeline`, `PipelineRun`, and `Repository` objects from the *Pipelines* page in the {product-title} web console.
10+
You can also use the *+Add* page in the *Developer* perspective of the web console to create CI/CD pipelines for your software delivery process.
11+
12+
// Dev console
13+
include::modules/op-odc-pipelines-abstract.adoc[leveloffset=+1]
14+
15+
[discrete]
16+
[id="prerequisites_working-with-pipelines-web-console"]
17+
== Prerequisites
18+
19+
* You have access to an {product-title} cluster, and have xref:../../web_console/web-console-overview.adoc#about-developer-perspective_web-console-overview[switched to the *Developer* perspective].
20+
* You have the xref:../../cicd/pipelines/installing-pipelines.adoc#installing-pipelines[{pipelines-shortname} Operator installed] in your cluster.
21+
* You are a cluster administrator or a user with create and edit permissions.
22+
* You have created a project.
23+
24+
include::modules/op-constructing-pipelines-using-pipeline-builder.adoc[leveloffset=+2]
25+
26+
include::modules/op-creating-pipelines-along-with-applications.adoc[leveloffset=+2]
27+
28+
include::modules/odc-adding-a-GitHub-repository-containing-pipelines.adoc[leveloffset=+2]
29+
30+
include::modules/op-interacting-with-pipelines-using-the-developer-perspective.adoc[leveloffset=+2]
31+
32+
include::modules/op-starting-pipelines-from-pipelines-view.adoc[leveloffset=+2]
33+
34+
include::modules/op-starting-pipelines-from-topology-view.adoc[leveloffset=+2]
35+
36+
include::modules/op-interacting-pipelines-from-topology-view.adoc[leveloffset=+2]
37+
38+
include::modules/op-editing-pipelines.adoc[leveloffset=+2]
39+
40+
include::modules/op-deleting-pipelines.adoc[leveloffset=+2]
41+
42+
[role="_additional-resources"]
43+
[id="additional-resources_working-with-pipelines-web-console"]
44+
=== Additional resources
45+
46+
* xref:../../cicd/pipelines/using-tekton-hub-with-openshift-pipelines.adoc#using-tekton-hub-with-openshift-pipelines[Using Tekton Hub with {pipelines-shortname}]
47+
48+
// Admin console
49+
include::modules/op-creating-pipeline-templates-admin-console.adoc[leveloffset=+1]

images/import-icon.png

497 Bytes
Loading

modules/op-constructing-pipelines-using-pipeline-builder.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This module is included in the following assembly:
22
//
3-
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
3+
// *openshift_pipelines/working-with-pipelines-web-console.adoc
44

55
:_content-type: PROCEDURE
66
[id="op-constructing-pipelines-using-pipeline-builder_{context}"]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * cicd/pipelines/working-with-pipelines-web-console.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="op-creating-pipeline-templates-admin-console_{context}"]
7+
= Creating pipeline templates in the Administrator perspective
8+
9+
As a cluster administrator, you can create pipeline templates that developers can reuse when they create a pipeline on the cluster.
10+
11+
.Prerequisites
12+
13+
* You have access to an {product-title} cluster with cluster administrator permissions, and have switched to the *Administrator* perspective.
14+
* You have installed the {pipelines-shortname} Operator in your cluster.
15+
16+
.Procedure
17+
18+
. Navigate to the *Pipelines* page to view existing pipeline templates.
19+
20+
. Click the image:../images/import-icon.png[title="Import"] icon to go to the *Import YAML* page.
21+
22+
. Add the YAML for your pipeline template. The template must include the following information:
23+
+
24+
[source,yaml]
25+
----
26+
apiVersion: tekton.dev/v1beta1
27+
kind: Pipeline
28+
metadata:
29+
# ...
30+
namespace: openshift # <1>
31+
labels:
32+
pipeline.openshift.io/runtime: <runtime> # <2>
33+
pipeline.openshift.io/type: <pipeline-type> # <3>
34+
# ...
35+
----
36+
<1> The template must be created in the `openshift` namespace.
37+
<2> The template must contain the `pipeline.openshift.io/runtime` label. The accepted runtime values for this label are `nodejs`, `golang`, `dotnet`, `java`, `php`, `ruby`, `perl`, `python`, `nginx`, and `httpd`.
38+
<3> The template must contain the `pipeline.openshift.io/type:` label. The accepted type values for this label are `openshift`, `knative`, and `kubernetes`.
39+
40+
. Click *Create*. After the pipeline has been created, you are taken to the *Pipeline details* page, where you can view information about or edit your pipeline.

modules/op-creating-pipelines-along-with-applications.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This module is included in the following assembly:
22
//
3-
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
3+
// *openshift_pipelines/working-with-pipelines-web-console.adoc
44

55
:_content-type: CONCEPT
66
[id="op-creating-pipelines-along-with-applications_{context}"]

modules/op-deleting-pipelines.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This module is included in the following assembly:
22
//
3-
// *openshift_pipelines/working-with-pipelines-using-the-developer-perspective.adoc
3+
// *openshift_pipelines/working-with-pipelines-web-console.adoc
44

55
:_content-type: PROCEDURE
66
[id="op-deleting-pipelines_{context}"]

0 commit comments

Comments
 (0)