Skip to content

Commit 2c1568c

Browse files
authored
Merge pull request #43039 from rolfedh/RHDEVDOCS-3856
[WIP]RHDEVDOCS-3856 Establish Jenkins category under the CI/CD
2 parents dda70ea + 26c0702 commit 2c1568c

16 files changed

+160
-150
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: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,12 +1553,6 @@ Topics:
15531553
- Name: Setting up additional trusted certificate authorities for builds
15541554
File: setting-up-trusted-ca
15551555
Distros: openshift-enterprise,openshift-origin
1556-
- Name: Migrating from Jenkins to Tekton
1557-
Dir: jenkins-tekton
1558-
Distros: openshift-enterprise
1559-
Topics:
1560-
- Name: Migrating from Jenkins to Tekton
1561-
File: migrating-from-jenkins-to-tekton
15621556
- Name: Pipelines
15631557
Dir: pipelines
15641558
Distros: openshift-enterprise
@@ -1615,6 +1609,13 @@ Topics:
16151609
File: configuring-sso-for-argo-cd-using-keycloak
16161610
- Name: Running Control Plane Workloads on Infra nodes
16171611
File: run-gitops-control-plane-workload-on-infra-nodes
1612+
- Name: Jenkins
1613+
Dir: jenkins
1614+
Distros: openshift-enterprise
1615+
Topics:
1616+
- Name: Migrating from Jenkins to OpenShift Pipelines
1617+
File: migrating-from-jenkins-to-openshift-pipelines
1618+
16181619
---
16191620
Name: Images
16201621
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)