Skip to content

Commit 26c0702

Browse files
committed
RHDEVDOCS-3856 Establish Jenkins category under the CI/CD
1 parent 4fbcb6e commit 26c0702

16 files changed

+161
-151
lines changed

_artifacts/toc.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,10 +1131,6 @@ main-menu:
11311131
path: cicd/builds/troubleshooting-builds.adoc
11321132
- name: Setting up additional trusted certificate authorities for builds
11331133
path: cicd/builds/setting-up-trusted-ca.adoc
1134-
- name: Migrating from Jenkins to Tekton
1135-
items:
1136-
- name: Migrating from Jenkins to Tekton
1137-
path: cicd/jenkins-tekton/migrating-from-jenkins-to-tekton.adoc
11381134
- name: Pipelines
11391135
items:
11401136
- name: Red Hat OpenShift Pipelines release notes
@@ -1183,6 +1179,13 @@ main-menu:
11831179
path: cicd/gitops/configuring-sso-for-argo-cd-using-keycloak.adoc
11841180
- name: Running GitOps control plane workloads on infrastructure nodes
11851181
path: cicd/gitops/run-gitops-control-plane-workload-on-infra-nodes.adoc
1182+
- Name: Jenkins
1183+
Dir: jenkins
1184+
Distros: openshift-enterprise
1185+
Topics:
1186+
- Name: Migrating from Jenkins to OpenShift Pipelines
1187+
File: migrating-from-jenkins-to-openshift-pipelines
1188+
11861189
- name: Images
11871190
items:
11881191
- name: Overview of images

_topic_maps/_topic_map.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,12 +1556,6 @@ Topics:
15561556
- Name: Setting up additional trusted certificate authorities for builds
15571557
File: setting-up-trusted-ca
15581558
Distros: openshift-enterprise,openshift-origin
1559-
- Name: Migrating from Jenkins to Tekton
1560-
Dir: jenkins-tekton
1561-
Distros: openshift-enterprise
1562-
Topics:
1563-
- Name: Migrating from Jenkins to Tekton
1564-
File: migrating-from-jenkins-to-tekton
15651559
- Name: Pipelines
15661560
Dir: pipelines
15671561
Distros: openshift-enterprise
@@ -1609,7 +1603,7 @@ Topics:
16091603
- Name: Deploying a Spring Boot application with Argo CD
16101604
File: deploying-a-spring-boot-application-with-argo-cd
16111605
- Name: Argo CD custom resource properties
1612-
File: argo-cd-custom-resource-properties
1606+
File: argo-cd-custom-resource-properties
16131607
- Name: Monitoring application health status
16141608
File: health-information-for-resources-deployment
16151609
- Name: Configuring SSO for Argo CD using Dex
@@ -1618,6 +1612,13 @@ Topics:
16181612
File: configuring-sso-for-argo-cd-using-keycloak
16191613
- Name: Running Control Plane Workloads on Infra nodes
16201614
File: run-gitops-control-plane-workload-on-infra-nodes
1615+
- Name: Jenkins
1616+
Dir: jenkins
1617+
Distros: openshift-enterprise
1618+
Topics:
1619+
- Name: Migrating from Jenkins to OpenShift Pipelines
1620+
File: migrating-from-jenkins-to-openshift-pipelines
1621+
16211622
---
16221623
Name: Images
16231624
Dir: openshift_images

cicd/jenkins-tekton/migrating-from-jenkins-to-tekton.adoc

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:_content-type: ASSEMBLY
2+
//Jenkins-Tekton-Migration
3+
[id="migrating-from-jenkins-to-openshift-pipelines_{context}"]
4+
= Migrating from Jenkins to OpenShift Pipelines or Tekton
5+
include::_attributes/common-attributes.adoc[]
6+
:context: migrating-from-jenkins-to-openshift-pipelines
7+
8+
toc::[]
9+
10+
You can migrate your CI/CD workflows from Jenkins to xref:../../cicd/pipelines/understanding-openshift-pipelines.adoc#understanding-openshift-pipelines[Red Hat OpenShift Pipelines], a cloud-native CI/CD experience based on the Tekton project.
11+
12+
include::modules/jt-comparison-of-jenkins-and-openshift-pipelines-concepts.adoc[leveloffset=+1]
13+
14+
include::modules/jt-migrating-a-sample-pipeline-from-jenkins-to-openshift-pipelines.adoc[leveloffset=+1]
15+
16+
include::modules/jt-migrating-from-jenkins-plugins-to-openshift-pipelines-hub-tasks.adoc[leveloffset=+1]
17+
18+
include::modules/jt-extending-openshift-pipelines-capabilities-using-custom-tasks-and-scripts.adoc[leveloffset=+1]
19+
20+
include::modules/jt-comparison-of-jenkins-openshift-pipelines-execution-models.adoc[leveloffset=+1]
21+
22+
include::modules/jt-examples-of-common-use-cases.adoc[leveloffset=+1]
23+
24+
[role="_additional-resources"]
25+
== Additional resources
26+
* xref:../../cicd/pipelines/understanding-openshift-pipelines.adoc#understanding-openshift-pipelines[Understanding OpenShift Pipelines]
27+
* xref:../../authentication/using-rbac.adoc#using-rbac[Role-based Access Control]

modules/jt-comparison-of-jenkins-and-tekton-concepts.adoc renamed to modules/jt-comparison-of-jenkins-and-openshift-pipelines-concepts.adoc

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
// Module included in the following assembly:
22
//
3-
// jenkins-tekton/migrating-from-jenkins-to-tekton.adoc
3+
// jenkins/migrating-from-jenkins-to-openshift-pipelines.adoc
44

5-
[id="jt-comparison-of-jenkins-and-tekton-concepts_{context}"]
6-
= Comparison of Jenkins and Tekton concepts
5+
:_content-type: CONCEPT
6+
[id="jt-comparison-of-jenkins-and-openshift-pipelines-concepts_{context}"]
7+
= Comparison of Jenkins and OpenShift Pipelines concepts
78

8-
This section summarizes the basic terms used in Jenkins and Tekton, and compares the equivalent terms.
9+
You can review and compare the following equivalent terms used in Jenkins and OpenShift Pipelines.
910

1011
== Jenkins terminology
1112
Jenkins offers declarative and scripted pipelines that are extensible using shared libraries and plugins. Some basic terms in Jenkins are as follows:
1213

13-
* *Pipeline*: Automates the entire process of building, testing, and deploying applications, using the link:https://groovy-lang.org/[Groovy] syntax.
14+
* *Pipeline*: Automates the entire process of building, testing, and deploying applications by using link:https://groovy-lang.org/[Groovy] syntax.
1415
* *Node*: A machine capable of either orchestrating or executing a scripted pipeline.
15-
* *Stage*: A conceptually distinct subset of tasks performed in a pipeline. Plugins or user interfaces often use this block to display status or progress of tasks.
16+
* *Stage*: A conceptually distinct subset of tasks performed in a pipeline. Plugins or user interfaces often use this block to display the status or progress of tasks.
1617
* **Step**: A single task that specifies the exact action to be taken, either by using a command or a script.
1718

18-
== Tekton terminology
19-
Tekton uses the link:https://yaml.org/[YAML] syntax for declarative pipelines and consists of tasks. Some basic terms in Tekton are as follows:
19+
== OpenShift Pipelines terminology
20+
OpenShift Pipelines uses link:https://yaml.org/[YAML] syntax for declarative pipelines and consists of tasks. Some basic terms in OpenShift Pipelines are as follows:
2021

2122
* **Pipeline**: A set of tasks in a series, in parallel, or both.
2223
* **Task**: A sequence of steps as commands, binaries, or scripts.
@@ -27,7 +28,7 @@ Tekton uses the link:https://yaml.org/[YAML] syntax for declarative pipelines an
2728
====
2829
You can initiate a PipelineRun or a TaskRun with a set of inputs such as parameters and workspaces, and the execution results in a set of outputs and artifacts.
2930
====
30-
* **Workspace**: In Tekton, workspaces are conceptual blocks that serve the following purposes:
31+
* **Workspace**: In OpenShift Pipelines, workspaces are conceptual blocks that serve the following purposes:
3132

3233
** Storage of inputs, outputs, and build artifacts.
3334

@@ -38,16 +39,16 @@ You can initiate a PipelineRun or a TaskRun with a set of inputs such as paramet
3839
+
3940
[NOTE]
4041
====
41-
In Jenkins, there is no direct equivalent of Tekton workspaces. You can think of the control node as a workspace, as it stores the cloned code repository, build history, and artifacts. In situations where a job is assigned to a different node, the cloned code and the generated artifacts are stored in that node, but the build history is maintained by the control node.
42+
In Jenkins, there is no direct equivalent of OpenShift Pipelines workspaces. You can think of the control node as a workspace, as it stores the cloned code repository, build history, and artifacts. When a job is assigned to a different node, the cloned code and the generated artifacts are stored in that node, but the control node maintains the build history.
4243
====
4344

4445
== Mapping of concepts
45-
The building blocks of Jenkins and Tekton are not equivalent, and a comparison does not provide a technically accurate mapping. The following terms and concepts in Jenkins and Tekton correlate in general:
46+
The building blocks of Jenkins and OpenShift Pipelines are not equivalent, and a specific comparison does not provide a technically accurate mapping. The following terms and concepts in Jenkins and OpenShift Pipelines correlate in general:
4647

47-
.Jenkins and Tekton - basic comparison
48+
.Jenkins and OpenShift Pipelines - basic comparison
4849
[cols="1,1",options="header"]
4950
|===
50-
|Jenkins|Tekton
51+
|Jenkins|OpenShift Pipelines
5152
|Pipeline|Pipeline and PipelineRun
5253
|Stage|Task
5354
|Step|A step in a task
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Module included in the following assembly:
2+
//
3+
// jenkins/migrating-from-jenkins-to-openshift-pipelines.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="jt-comparison-of-jenkins-openshift-pipelines-execution-models_{context}"]
7+
= Comparison of Jenkins and OpenShift Pipelines execution models
8+
9+
Jenkins and OpenShift Pipelines offer similar functions but are different in architecture and execution.
10+
11+
.Comparison of execution models in Jenkins and OpenShift Pipelines
12+
[cols="1,1",options="header"]
13+
|===
14+
|Jenkins|OpenShift Pipelines
15+
|Jenkins has a controller node. Jenkins runs pipelines and steps centrally, or orchestrates jobs running in other nodes.|OpenShift Pipelines is serverless and distributed, and there is no central dependency for execution.
16+
|Containers are launched by the Jenkins controller node through the pipeline.|OpenShift Pipelines adopts a 'container-first' approach, where every step runs as a container in a pod (equivalent to nodes in Jenkins).
17+
|Extensibility is achieved by using plugins.|Extensibility is achieved by using tasks in Tekton Hub or by creating custom tasks and scripts.
18+
|===

0 commit comments

Comments
 (0)