You have spent an entire course on Jenkins, and TecnoShop has built a mature platform on it. But Jenkins is not alone: repository platforms include their own CI, there are specialized managed services, Kubernetes-native tools and a different way of deploying, GitOps, which has changed how many organizations get applications into their clusters. A CI/CD professional needs to know when Jenkins is the best option and when it is not, how to translate its concepts into those of other platforms and, if it comes to that, how to plan a coexistence or a migration without breaking anything. In this lesson you will survey the landscape with caution (these tools change quickly, and you will not find prices or market figures here), compare concepts, see the orders-api CI written in GitHub Actions and in GitLab CI/CD, and finish with the decision framework TecnoShop applies.
Why Compare, and How Carefully
Three situations force you to look beyond Jenkins:
- A new decision: a team, a company or a project that is starting out and choosing a platform.
- Pressure to change: the organization adopts a repository platform with built-in CI, or a new team arrives with a different tool.
- A problem that Jenkins solves poorly in a specific context, for example, declarative deployment to many Kubernetes clusters.
And three precautions for comparing well:
- These platforms evolve very quickly: features, limits, product names and pricing models change several times a year. What follows describes their model and their philosophy, which change much less; for any decision, check the details in their official documentation and with a real trial.
- There is no "best" platform, only one that is better suited to a context: where the repositories are, what gets deployed, what network and compliance constraints exist, what the team knows how to do.
- The cost is not just the bill: it is also operating time, migration and training (you saw this in 09-01).
The Platform Landscape
| Platform | What it is | Model |
|---|---|---|
| Jenkins | Open source automation server, extensible with plugins | Self-managed (or commercial distributions based on it) |
| GitHub Actions | CI/CD built into GitHub, with YAML workflows and a large catalog of reusable actions | Service; managed or self-hosted runners |
| GitLab CI/CD | CI/CD built into GitLab, with .gitlab-ci.yml |
Service or self-managed; managed or self-hosted runners |
| Azure Pipelines | The CI/CD service of Azure DevOps, with YAML pipelines and templates | Service (with a self-managed Azure DevOps option); managed or self-hosted agents |
| CircleCI | CI/CD service with YAML configuration and reusable packages (orbs) | Service, with self-hosted runners and a self-managed edition |
| Buildkite | A managed control plane with agents that are always your own | Hybrid: orchestration in the service, execution on your infrastructure |
| Tekton | Kubernetes-native CI/CD framework: tasks and pipelines as cluster resources | Self-managed on Kubernetes; the basis of some commercial products |
| Argo Workflows | Kubernetes-native workflow engine (each step a container; dependency graphs) | Self-managed on Kubernetes; used for CI and for data processing |
| Argo CD | GitOps continuous delivery for Kubernetes: syncs the cluster with what a repository declares | Self-managed on Kubernetes |
| Cloud provider services | Each cloud's build and deployment orchestration services | Service, integrated with the corresponding cloud |
A few clarifications:
- Argo CD is not a CI tool: it does not build or test. It watches a repository with manifests (or a chart, or Kustomize) and makes the cluster match it, continuously. This is GitOps' pull model: the cluster "pulls" the desired state, instead of a pipeline "pushing" changes with
kubectl applyasdeployToKubernetesdoes (08-02). That is why it is usually combined with a CI tool, such as Jenkins. - Tekton and Argo Workflows are building blocks more than complete products: they give you power and fit well with Kubernetes, but they require you to build the interface, the repository integration and the secrets management around them.
- GitHub Actions, GitLab CI/CD and Azure Pipelines are the "in-house" CI of their platforms: their great advantage is the integration with the repository and the fact that there is no server to operate if you use the managed runners.
Comparison by Criteria
A qualitative comparison, stated in general terms (each product's specific offering changes; verify it):
| Platform | Hosting | Configuration | Extensibility | Executors | Repository integration |
|---|---|---|---|---|---|
| Jenkins | You operate it | Jenkinsfile (declarative or scripted Groovy); JCasC and Job DSL for the instance |
Very high: thousands of plugins, shared libraries with full Groovy | Your own agents: permanent, Docker, Kubernetes, cloud VMs | Through plugins (GitHub, GitLab, Bitbucket...); good, but it has to be configured |
| GitHub Actions | Service | YAML in .github/workflows/ |
Catalog actions and your own; reusable workflows | Managed by the service or your own | Native with GitHub |
| GitLab CI/CD | Service or self-managed | YAML in .gitlab-ci.yml, with include and components |
Templates, components, container images | Managed or your own | Native with GitLab |
| Azure Pipelines | Service (or self-managed) | YAML with templates | Marketplace extensions, templates | Managed or your own | Native with Azure Repos; also GitHub and others |
| CircleCI | Service (or self-managed) | YAML with orbs | Reusable orbs | Managed or your own | GitHub, Bitbucket and others |
| Buildkite | Managed control plane | YAML, can be generated dynamically | Hook-based plugins | Always your own | GitHub, GitLab, Bitbucket and others |
| Tekton | Your cluster | Kubernetes resources in YAML | Reusable tasks (catalogs) | Pods | Through additional components (triggers) |
| Argo Workflows / Argo CD | Your cluster | Kubernetes resources in YAML | Templates; configuration management plugins in Argo CD | Pods | Argo CD watches Git repositories; Argo Workflows, through events |
| Platform | Operating cost | Learning curve | Ecosystem |
|---|---|---|---|
| Jenkins | High: controller, plugins, upgrades, backups, security (all of module 5) | Medium-high: Groovy, CPS, plugins, administration | Very broad and mature, with uneven quality across plugins |
| GitHub Actions | Low with managed runners; medium with your own | Low to get started | Very broad (action catalog); third-party actions have to be evaluated as dependencies |
| GitLab CI/CD | Low as a service; medium-high self-managed | Low-medium | Broad, tightly integrated with the rest of GitLab |
| Azure Pipelines | Low-medium | Medium | Broad in the Microsoft ecosystem |
| CircleCI | Low | Low-medium | Broad (orbs) |
| Buildkite | Medium: you operate the agents | Medium | Smaller, aimed at platform teams |
| Tekton | High: operating it and building around it | High | Smaller; Kubernetes-native |
| Argo Workflows / Argo CD | Medium-high (operating it in the cluster) | Medium-high (requires knowing Kubernetes) | Broad in the Kubernetes world; Argo CD very widespread for GitOps |
What the table cannot tell you: how much it costs in your case. Pricing models (per execution minute, per user, per agent, per machine size) change and depend on volume; managed runners are convenient, but long or very frequent builds can get expensive, and your own runners bring back part of the operating cost. Always do the math with your own data on builds per day and average duration (08-05).
When Jenkins Is Still the Best Option, and When It Is Not
Jenkins is a particularly good fit when:
- You need to run on your own infrastructure for network, data or compliance reasons (like TecnoShop, whose servers, Nexus and SonarQube are on the internal network), and you want to control the whole system.
- The repositories are on several platforms, or there are legacy systems (other version control systems, special machines, Windows, macOS, hardware) to orchestrate from a single place.
- The delivery processes are complex: approvals with rules, shared resources (
lock), coordination between pipelines, orchestrated rollback (07-03, 07-04). - You need deep extensibility: custom integrations, shared logic in a library written in a full programming language.
- There is already a mature investment in Jenkins (as code, with operations and security sorted out) and the team has mastered it: migrating has a real cost that must be justified by a benefit.
Another option is usually a better fit when:
- The code is on a single platform (GitHub, GitLab) and the processes are standard: the built-in CI gives feedback in the same place where code is reviewed, with no server to operate.
- There is no platform team that can take on running a Jenkins (upgrades, plugins, security, backups). A neglected Jenkins is worse than a managed service.
- The target is Kubernetes and you want a declarative, auditable deployment model: GitOps with Argo CD (or similar tools) handles continuous reconciliation and drift detection, something a pipeline that "pushes" does not do.
- You need elasticity without managing it: highly variable peaks of short builds that a managed service absorbs without capacity planning.
- Small teams or open source projects, where integration with the repository and simplicity matter more than flexibility.
Concept Mapping
Most Jenkins concepts have a close equivalent, although never an identical one:
| Jenkins | GitHub Actions | GitLab CI/CD |
|---|---|---|
Pipeline (Jenkinsfile) |
Workflow (.github/workflows/*.yml) |
Pipeline (.gitlab-ci.yml) |
stage |
Job (each one on its own runner) | stage (groups jobs) and job |
steps, a step (sh, junit...) |
Step (run: or uses: an action) |
A script: line |
agent / label |
Runner (runs-on: with labels) |
Runner (tags:) and image: |
Credentials (withCredentials) |
Secrets (${{ secrets.X }}), per repository, organization or environment |
Masked and protected CI/CD variables |
| Folder credentials | Environment secrets with protection rules | Protected variables (protected branches and tags only) or per environment |
Shared library (tecnoshop-lib) |
Reusable workflows and composite actions | include: of templates and CI/CD components |
parameters |
inputs of workflow_dispatch or of a reusable workflow |
Variables when running the pipeline; spec: inputs in components |
when |
if: on jobs and steps |
rules: |
post { always { } } |
if: always() on a step |
when: always / after_script: / artifacts: when: always |
parallel, matrix |
Independent jobs in parallel, strategy: matrix |
Jobs in the same stage, parallel: matrix |
stash/unstash, archiveArtifacts |
actions/upload-artifact and download-artifact |
artifacts: and dependencies:/needs: |
input (approval) |
Environments with required reviewers | when: manual with protected environments |
lock, disableConcurrentBuilds |
concurrency: |
resource_group: |
timeout |
timeout-minutes: |
timeout: |
triggers { cron(...) } |
on: schedule: |
Pipeline schedules |
| Multibranch | push and pull_request events with no extra configuration |
Branch and merge request pipelines |
junit, recordCoverage |
Third-party actions or job summaries | artifacts: reports: junit: and coverage reports, built in |
| Plugins | Catalog actions | Built-in functionality, templates and components |
The nuances matter. For example, in Jenkins the stages of a pipeline share an agent and a workspace unless you ask otherwise; in GitHub Actions each job starts on a clean runner, and passing files between jobs requires uploading and downloading them as artifacts.
The orders-api CI in GitHub Actions
To see the real differences, it helps to translate something you already know. The essential CI stage of orders-api (build, tests, package and publish to Nexus from main and from tags) as a GitHub Actions workflow, .github/workflows/ci.yml:
name: CI orders-api
on:
push:
branches: [main]
tags: ['v*.*.*']
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
ci:
runs-on: [self-hosted, linux, tecnoshop]
timeout-minutes: 30
env:
MAVEN_ARGS: -B -ntp
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Build
run: ./mvnw clean compile
- name: Tests
run: ./mvnw test
- name: Test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: target/surefire-reports/
- name: Package
run: ./mvnw -DskipTests package
- name: Publish to Nexus
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./mvnw -DskipTests -s ci/settings-publish.xml deployLine by line:
on:: the events that trigger the workflow: a push tomain,vX.Y.Ztags and PRs. It is the equivalent of the multibranch with tag discovery, but with no job to create: the file in the repository is enough.concurrency:: one group per branch or PR; on PRs, a new build cancels the previous one. It is thedisableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null)from 07-02.permissions: contents: read: the workflow's automatic token can only read the repository. It is a least-privilege best practice that is always worth declaring.runs-on: [self-hosted, linux, tecnoshop]: a runner of TecnoShop's own. Managed runners are on the Internet and cannot reachnexus.tecnoshop.local; publishing to the internal network requires a runner inside it, which TecnoShop would have to operate (just as it operateslinux-agent-01).timeout-minutes: the pipeline'stimeout.actions/checkout@v4,actions/setup-java@v4,actions/upload-artifact@v4: official actions; the number is the major version, as an example (check the current one). In demanding environments they are pinned by the action's commit SHA instead of by tag, because a tag can move: it is the same logic as pinning@Library('[email protected]').setup-javawithcache: maven: installs the JDK and saves and restores the Maven repository between runs, with a key computed from thepom.xmlfiles. In Jenkins, this was thecache-civolume.run: ./mvnw ...: the same commands as the Jenkins pipeline, thanks to the logic living in the tools and not in Groovy (04-07). Maven readsMAVEN_ARGSfrom the environment.if: always(): thepost { always { junit ... } }: the reports are uploaded even if the tests fail. Displaying the JUnit results the way the Jenkins Test Result page does requires an additional third-party action.if: github.ref == ...: thewhenofPublish.secrets.NEXUS_USERandsecrets.NEXUS_PASSWORD: repository or organization secrets, masked in the log, which arrive as environment variables.ci/settings-publish.xmlis a Maven settings file with a<server>that reads${env.NEXUS_USER}and${env.NEXUS_PASSWORD}; in Jenkins, the managed filemaven-settings-tecnoshop-publishplayed that role (06-05).
The orders-api CI in GitLab CI/CD
The same CI in .gitlab-ci.yml, assuming the repository is on GitLab:
stages: [build, test, package, publish]
default:
image: eclipse-temurin:21-jdk
tags: [tecnoshop-linux]
variables:
MAVEN_ARGS: "-B -ntp"
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
cache:
key: maven-$CI_COMMIT_REF_SLUG
paths:
- .m2/repository/
build:
stage: build
script:
- ./mvnw clean compile
artifacts:
paths: [target/]
expire_in: 1 hour
test:
stage: test
script:
- ./mvnw test
artifacts:
when: always
reports:
junit: target/surefire-reports/TEST-*.xml
package:
stage: package
script:
- ./mvnw -DskipTests package
artifacts:
paths: [target/orders-api-*.jar]
expire_in: 1 week
publish:
stage: publish
script:
- ./mvnw -DskipTests -s ci/settings-publish.xml deploy
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/Line by line:
stages:: the order. Jobs in the samestagewould run in parallel.default: image:: each job runs in a new container with that image. The wrapper downloads Maven inside it.tags: [tecnoshop-linux]: picks a self-hosted runner with that tag, on the internal network, for the same reason as in GitHub Actions.cache:: the Maven repository is saved and restored between runs. For this to work, it must be inside the project directory (henceMAVEN_OPTS). The per-branch key ($CI_COMMIT_REF_SLUG) separates the caches of different branches, one way of reducing the cache poisoning risk you saw in 09-03.artifacts: paths: [target/]inbuild: since each job is a new container, the compiled output is passed to the next stage as an artifact (the equivalent ofstash). Maven may decide to recompile anyway; the chain is more correct than fast.artifacts: reports: junit:: GitLab interprets the JUnit reports and shows the results in the merge request, with no plugin.rules:: thewhenofPublish: only on the default branch or onvX.Y.Ztags.- The Nexus credentials would be project CI/CD variables, masked and protected: they are only available on protected branches and tags, so a merge request from an arbitrary branch cannot read them. It is a simple equivalent of what branch conditions and folder credentials handled in Jenkins.
The Real Differences
Translating the essential CI is easy: it is a few dozen lines of YAML. The real effort lies in what does not appear in those files:
What orders-api does in Jenkins today |
In GitHub Actions / GitLab CI/CD |
|---|---|
tecnoshop-lib: mavenTecnoShop, infoBuild, smokeSpringBoot, scanSecrets, buildImage, publishImage, deployToKubernetes, notifyTeam, notifyDeployment |
Rewrite each step as a composite action or reusable workflow (Actions) or as a template or component (GitLab), with its own versioning and tests |
Pods with maven, kaniko and jnlp containers sharing a workspace |
One job per container or one image with everything; passing files between jobs as artifacts |
Smoke starting the jar on a port of the agent |
The same on the runner, or with service containers |
recordCoverage with thresholds that mark the build UNSTABLE |
There is no equivalent "yellow" state: it either fails or passes with a warning |
waitForQualityGate with the SonarQube webhook |
An action or a scanner step that waits for the result |
CD with lock, milestone, input with submitter, orchestrated rollback and notifications (07-03, 07-04) |
Environments with reviewers, concurrency/resource_group; the node-by-node rollback and the updateNode logic are rewritten as scripts |
Folder credentials, kubeconfig-tecnoshop, ssh-production |
Protected environment secrets; the runners that deploy must be on the production network |
| JCasC, Job DSL, item roles | Organization and repository configuration (permissions, environments, protection rules), which is also best managed as code |
Prometheus metrics, alerts, wfapi, pipeline-status.sh |
The platform's API; the runners' own metrics |
Two lessons come out of this table. First: the more logic lives in scripts and tools (./mvnw, deploy/*.sh, ci/acceptance.sh), the more portable the pipeline is; the more of it lives in Groovy or in plugins, the more has to be rewritten. Second: the integrated platforms handle standard CI very well and complex delivery processes somewhat less well, which is exactly where TecnoShop has invested the most.
Hybrid Models
You do not have to choose a single tool for everything. Three common combinations:
flowchart LR
subgraph A["Hybrid 1: CI on the repository platform, CD in Jenkins"]
A1["GitHub Actions<br/>PRs and main: build, test"] --> A2["Nexus / registry"]
A2 --> A3["Jenkins<br/>CD with approvals,<br/>lock and rollback"]
end
subgraph B["Hybrid 2: Jenkins for CI, Argo CD for Kubernetes"]
B1["Jenkins<br/>CI, image, scans"] -->|"updates the image version"| B2["Deployment repository<br/>(manifests per environment)"]
B2 -->|"Argo CD syncs"| B3["Clusters<br/>dev, staging, production"]
end
| Model | When it fits | Pros | Cons |
|---|---|---|---|
| CI on the repository platform + Jenkins for CD | Many repositories with standard CI and complex, centralized delivery | Feedback built into the PR, less load on the controller; Jenkins focuses on what it does best | Two platforms to operate and secure; the boundary between them (the published artifact) must be well defined |
| Jenkins for CI + Argo CD for Kubernetes | Deployments to Kubernetes, especially across several clusters or environments | Desired state in Git, drift detection, rollback with git revert, Jenkins without cluster credentials |
One more deployment repository; GitOps has to be learned; environments that are not Kubernetes stay in Jenkins |
| Jenkins for the special cases + an integrated platform for the standard ones | Organizations with a lot of heterogeneous work (hardware, legacy systems) and a lot of standard work | Everything in its place | A risk that the boundary blurs and nobody knows where each project goes |
In the second model, the CI pipeline stops deploying: instead of kubectl apply, it makes a commit (or opens a PR) in the deployment repository changing the image digest, and Argo CD does the rest. A notable security advantage: credentials with write access to the clusters disappear from Jenkins, because Argo CD lives inside the cluster.
Migration Strategies and Risks
If an organization decides to move (fully or partially) to another platform, the worst strategy is a "big bang" over a weekend. The ones that work:
| Strategy | How | When |
|---|---|---|
| Incremental, service by service | One service is migrated at a time, starting with a simple, low-criticality one; you learn and adjust the templates before the next one | Almost always: it is the basis for the others |
| Strangler pattern | New services are born on the new platform; existing ones migrate when they need deep changes; Jenkins is left with less and less until it can be shut down (or kept for what only it does well) | Organizations with many services and no urgency |
| Stable coexistence | Both platforms are deliberately kept side by side with clear boundaries (the hybrid models) | When each one provides something the other does not |
| Temporary dual running | For a few weeks, the migrated service is built on both platforms and the results are compared (artifacts, tests, times) | Critical services, before retiring the old pipeline |
Exit criteria (when a service is considered migrated and its Jenkins pipeline is retired):
- The same controls as before: tests, coverage, quality, security, SBOM, scans. None is lost in the migration.
- The same artifact: the jar and the image produced are equivalent (same content, same version and commit traceability).
- Feedback times that are the same or better.
- Secrets migrated with the same minimum scope, and the old ones revoked.
- Documentation and runbooks updated, and the team knows how to diagnose problems on the new platform.
Frequent risks:
- Losing controls without noticing: the coverage threshold that marked builds UNSTABLE, the nightly history scan, the approval with a change reference. Take inventory before migrating.
- Duplicating secrets: during the coexistence, the same secret in two places doubles the attack surface. Use different credentials on each platform and revoke the old ones when you are done.
- Vendor lock-in: a managed platform makes things much easier, but its formats and actions are not portable. Keeping the logic in your own scripts reduces that dependency.
- Unexpected cost: the managed execution minutes of long, frequent builds. Do the math with your real data before deciding.
- Third-party actions or components: they are code that runs with access to your secrets, just like a plugin. They need their own governance (pinning versions by SHA, reviewing, restricting), like the plugin governance from 09-01.
- Two half-finished platforms forever: a migration that never ends is the worst kind of coexistence. Set dates and criteria.
TecnoShop's Decision Framework
The shipments team, which arrives with GitHub Actions experience, asks whether it would make sense for TecnoShop to move. Laura prepares an assessment with weighted criteria (from 1 to 5; the higher, the better for TecnoShop today):
| Criterion | Weight | Jenkins (current) | GitHub Actions (CI) + Jenkins (CD) | GitHub Actions for everything | Jenkins + Argo CD for Kubernetes |
|---|---|---|---|---|---|
| Running on the internal network (Nexus, SonarQube, servers) | 3 | 5 | 3 | 3 | 5 |
Complex delivery (approvals, lock, rollback on VMs) |
3 | 5 | 5 | 2 | 5 |
| Feedback built into the PR | 2 | 4 | 5 | 5 | 4 |
| Platform operating cost | 2 | 2 | 2 | 4 | 2 |
| Migration cost and risk | 3 | 5 | 3 | 1 | 4 |
| Declarative deployment to Kubernetes (future) | 2 | 3 | 3 | 3 | 5 |
| Team knowledge | 2 | 5 | 3 | 3 | 3 |
| Weighted total | 73 | 59 | 48 | 70 |
- Each total is the sum of weight × score (current Jenkins: 3×5 + 3×5 + 2×4 + 2×2 + 3×5 + 2×3 + 2×5 = 73). The numbers matter less than the discussion they force you to have: every score must be justifiable. Notice that Jenkins + Argo CD comes very close, and it would move ahead as soon as deployment to Kubernetes carried more weight (once
stagingand production are about to move there). - Laura's reasoned conclusion:
- Stay with Jenkins as the CI/CD platform. TecnoShop's investment (everything as code, operations sorted out, complex delivery on virtual machines) is exactly the terrain where Jenkins is strong, and a migration would not bring enough to make up for its cost and risk.
- Evaluate Argo CD for Kubernetes deployments, with a pilot in
tecnoshop-devwhenstagingand production are about to move to Kubernetes (phase 4 of the plan from 08-05): Jenkins would keep doing the CI and publishing images, and would update the deployment repository instead of runningkubectl apply. - Do not introduce GitHub Actions as a second CI platform for now: it would add operations work (self-hosted runners on the internal network), duplicated secrets and a second way of doing the same thing. It will be re-evaluated in 12 months, or sooner if any premise changes (for example, if TecnoShop no longer needs to run on its internal network).
- Preserve portability: logic in scripts and tools, thin library steps. It is good practice in Jenkins and keeps any future decision open.
- The shipments team will join Jenkins by following the paved road: that is the Final Project.
Common Mistakes and Tips
- Deciding based on hype or the latest conference talk: the right platform depends on where your repositories are, what you deploy and under what constraints. Write down the criteria and their weights before scoring.
- Comparing the essential CI and forgetting everything else: translating build-test-publish takes an afternoon; translating the library, the delivery, the secrets, the permissions and the monitoring takes months.
- Trusting prices or limits you read a while ago: they change frequently. Always check the current documentation and do the math with your own volumes.
- Treating third-party actions or components as harmless: they run with your secrets. Pin versions (by SHA when possible), review them and restrict their permissions.
- Confusing GitOps with "storing YAML in Git": GitOps means that an agent in the cluster continuously reconciles the actual state with the declared state, and that changes arrive through commits. A
kubectl applyfrom a pipeline is not GitOps, even if the manifests are in Git. - Migrations without exit criteria: two half-finished platforms are more expensive than either of them.
- Falling for the sunk cost fallacy: "we have invested a lot in Jenkins" is not, by itself, an argument for staying; the value that investment continues to deliver, compared with the cost of changing, is.
- Tip: store the assessment (criteria, weights, scores and conclusion) as an architecture decision in
docs/decisions/and give it a review date. Premises change, and the decision must be reviewable with the same criteria.
Exercises
Exercise 1. Translate the catalog-web CI you know into GitHub Actions (npm ci, npm test with a JUnit report, npm run build and a matrix with Node 20 and 22). State which mappings from the table in section 5 you used and which part has no direct equivalent.
Exercise 2. Design, at a high level, what the deployment of orders-api to tecnoshop-dev would look like with the Jenkins + Argo CD model: which new repository appears, what the Jenkins pipeline does instead of deployToKubernetes, which credentials disappear from Jenkins and which ones appear, and how a rollback would be done.
Exercise 3. Recalculate the weighted total of each column in TecnoShop's table. Then change two premises and recalculate: (a) TecnoShop moves Nexus, SonarQube and its environments to services reachable from the Internet with strong authentication; (b) Laura leaves and there is nobody with Jenkins experience. Does the conclusion change?
Solutions
Solution 1.
name: CI catalog-web
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: [self-hosted, linux, tecnoshop]
strategy:
matrix:
node: ['20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm test
- if: always()
uses: actions/upload-artifact@v4
with:
name: junit-node-${{ matrix.node }}
path: junit.xml
build:
needs: test
runs-on: [self-hosted, linux, tecnoshop]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/Mappings: matrix with the NODE_VERSION axis → strategy.matrix.node; the nodejs(...) tool → actions/setup-node; post { always { junit } } → if: always() and uploading the report; stash/archiveArtifacts of dist/ → upload-artifact; the stage order → needs: test. No direct equivalent: the Test Result page with trends (a third-party action is needed to display the JUnit results), the UNSTABLE state for coverage, notifyTeam with its rules (it would have to be rewritten) and the shared npm_config_cache cache (here, the setup-node cache replaces it). The exact path of the JUnit report depends on the project's jest-junit configuration. And, as with orders-api, a self-hosted runner is necessary if the build must reach the Nexus npm proxy on the internal network.
Solution 2. A deployment repository appears, for example tecnoshop/deployments, with one directory per application and environment (orders-api/dev/ with the manifests from k8s/ or a Kustomize overlay with the image reference). In Argo CD, an Application watches orders-api/dev/ and syncs it with the tecnoshop-dev namespace. The main pipeline, instead of deployToKubernetes, makes a commit (or opens an auto-merging PR) in tecnoshop/deployments changing the image digest to IMAGE_DIGEST; Argo CD detects the change and applies the rolling update; the pipeline can wait for the application to be synced and healthy by querying the Argo CD API or CLI, if you want the same feedback as today. Credentials: kubeconfig-tecnoshop disappears from Jenkins (and the deploy-orders ServiceAccount is no longer used from outside the cluster); a credential appears with write access only to tecnoshop/deployments (for example, another restricted installation of the GitHub App) and, if the pipeline queries the status, a read-only Argo CD token. Rollback: a git revert of the version commit in the deployment repository (Argo CD syncs again), or Argo CD's history feature as an emergency measure, carrying the change over to Git afterwards so that the repository remains the source of truth.
Solution 3. With the weights and scores from the table: current Jenkins = 3×5 + 3×5 + 2×4 + 2×2 + 3×5 + 2×3 + 2×5 = 15 + 15 + 8 + 4 + 15 + 6 + 10 = 73; GitHub Actions (CI) + Jenkins (CD) = 9 + 15 + 10 + 4 + 9 + 6 + 6 = 59; GitHub Actions for everything = 9 + 6 + 10 + 8 + 3 + 6 + 6 = 48; Jenkins + Argo CD = 15 + 15 + 8 + 4 + 12 + 10 + 6 = 70 (they match the table). With (a), running on the internal network is no longer a problem for managed runners: the two options with GitHub Actions go from 3 to 5 on that criterion (+6), and the mixed one also improves on operating cost (from 2 to 4, +4, because the self-hosted CI runners disappear): the mixed option rises to 69, four points behind Jenkins, and "GitHub Actions for everything" to 54. With (b), Jenkins' "team knowledge" drops from 5 to 1 (−8) and its operating cost from 2 to 1 (−2), because nobody knows how to operate it: current Jenkins falls to 63, and Jenkins + Argo CD, which also depends on Jenkins (knowledge from 3 to 1 and operating cost from 2 to 1), to 64. With both premises at once, the conclusion would probably shift toward CI on the repository platform, keeping Jenkins only for the CD during the migration, or toward GitOps for Kubernetes. The lesson of the exercise: the decision depends on premises that have to be written down and reviewed; if they change, you recalculate, instead of defending the previous decision out of inertia.
Conclusion
Jenkins coexists with platforms built into the repositories (GitHub Actions, GitLab CI/CD, Azure Pipelines), specialized services (CircleCI, Buildkite), Kubernetes-native tools (Tekton, Argo Workflows), GitOps with Argo CD and each cloud's own services. Compared by hosting, configuration, extensibility, executors, repository integration, operating cost, learning curve and ecosystem, none of them wins on every count: Jenkins stands out when you need to run on your own infrastructure, orchestrate complex delivery processes and extend it deeply, and other options fit better when there is no platform team, the processes are standard or the target is Kubernetes with a declarative model. You have seen that the concepts translate almost one to one (pipeline and workflow, agent and runner, credentials and secrets, library and reusable workflows or include), that the essential orders-api CI fits in a few dozen lines of YAML in both GitHub Actions and GitLab, and that the hard part is everything else: library, delivery, secrets, permissions and operations. Hybrid models and incremental migrations, with exit criteria and without losing controls, make it possible to evolve without leaps into the void. TecnoShop decides, with a weighted and reviewable framework, to stay with Jenkins and evaluate Argo CD for Kubernetes. It is time to put everything you have learned to the test by bringing a new service onto that platform from start to finish, in the Final Project: A Complete CI/CD Platform for TecnoShop.
