\chapter{Continuous Integration with Jenkins} \ChapterLabel{Jenkins} \index{Jenkins}\index{continuous integration}\index{merge gate}\index{polling}\index{webhook} \section{Jenkins Deployment and Persistence} This chapter implements Chapter 4 of the instructor's Version 1.38 manual using the existing Group 10 startup repository. The October 21, 2026 work repaired the earlier incomplete Jenkins installation, replaced the placeholder test with a permitted minimal Python application, and verified a failed and repaired pull-request head through Jenkins and Gitea. Earlier Gitea Actions runs compile this IT manual; they are separate from this application's Jenkins checks \cite{JenkinsDocker,JenkinsSecurity,GiteaProtectedBranches}. \begin{devopsNote}[Completion boundary] The failed and passing Jenkins checks and protected-branch configuration are verified. PR~9 remains open awaiting a real teammate's approval and eventual merge. Browser source restriction is applied and verified. Current account-side Cloud Firewall rule evidence remains pending; it must not be inferred from HTTPS or blocked backend ports. This is an operational evidence draft, not a claim that every rubric item is finished. \end{devopsNote} \begin{longtable}{L{4.0cm}L{9.0cm}} \caption{Jenkins deployment verified October 21, 2026\label{Table:JenkinsDeployment}}\\ \toprule Item & Configuration and observation\\\midrule\endfirsthead \toprule Item & Configuration and observation\\\midrule\endhead \bottomrule\endlastfoot Official image & \nolinkurl{jenkins/jenkins:2.528.1-lts-jdk21}; Jenkins core 2.528.1, Java 21.0.8.\\ Controlled host & Droplet \texttt{sergio-ssw590-gitea}, ID 604497684, public IPv4 \texttt{165.227.90.215}; Ubuntu 24.04, 1 vCPU, 512 MB plan. The actual running host reports 458 MiB RAM.\\ Available capacity & At 23:13 UTC: 137 MiB available RAM, 1,023 MiB swap total (544 MiB used), 8.7 GiB root filesystem (3.4 GiB available). No additional Droplet or paid plan upgrade was created for this chapter.\\ Persistent home & \nolinkurl{/opt/jenkins/home:/var/jenkins_home}; restart policy \texttt{unless-stopped}.\\ Compose source & \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/codex/chapter4-jenkins-evidence/ops/jenkins/compose.yml}{Versioned Jenkins Compose file}; this revision's operational files and evidence are retained on the linked review branch.\\ Build location & One controller executor labeled \texttt{controller-small-trusted}; no separate build agent and no Docker socket.\\ Executor dependencies & Python 3.13.5 and Git 2.47.3. Python was installed from the image's Debian package repositories; application tests use the standard library only.\\ Repeatability & Run \nolinkurl{ops/jenkins/bootstrap-executor.sh} after creating or recreating the official container. Python installed in its writable layer survives a restart, but must be installed again after recreation.\\ Restart test & See the dated persistence result below. This verifies container restart persistence, not backup/restore or recreation.\\ \end{longtable} \begin{lstlisting}[caption={Non-secret Compose configuration; only the proxy publishes web ports}] services: jenkins: image: jenkins/jenkins:2.528.1-lts-jdk21 container_name: jenkins restart: unless-stopped environment: - JENKINS_OPTS=--prefix=/ - JAVA_OPTS=-Xms128m -Xmx384m -Djenkins.install.runSetupWizard=true volumes: - /opt/jenkins/home:/var/jenkins_home networks: - gitea_default networks: gitea_default: external: true \end{lstlisting} The original installation failed to activate Git and Gitea integrations and several Pipeline components because dependency versions were inconsistent. The operator retained configuration/plugin rollback copies on the server and aligned \texttt{bouncycastle-api}, \texttt{caffeine-api}, \texttt{gson-api}, and subsequently \texttt{script-security} to the required compatible versions. After restart, Jenkins reported zero failed plugins. Table~\ref{Table:JenkinsPluginCheck} records every loaded version, also retained in \nolinkurl{ops/jenkins/plugins.txt}. \begingroup\footnotesize \begin{longtable}{L{5.2cm}L{6.3cm}L{1.5cm}} \caption{Loaded Jenkins plugins after dependency repair\label{Table:JenkinsPluginCheck}}\\ \toprule Plugin ID & Version & State\\\midrule\endfirsthead \toprule Plugin ID & Version & State\\\midrule\endhead \bottomrule\endlastfoot apache-httpcomponents-client-4-api & 4.5.14-269.vfa\_2321039a\_83 & Active\\ asm-api & 9.10.1-216.va\_9256d3b\_844b\_ & Active\\ authentication-tokens & 1.144.v5ff4a\_5ec5c33 & Active\\ bouncycastle-api & 2.30.1.82-277.v70ca\_0b\_877184 & Active\\ branch-api & 2.1303.v9f3b\_95dc329d & Active\\ caffeine-api & 3.2.3-194.v31a\_b\_f7a\_b\_5a\_81 & Active\\ checks-api & 422.vc7e8b\_51488c6 & Active\\ cloudbees-folder & 6.1106.v3a\_d9a\_6d2465e & Active\\ command-launcher & 123.v37cfdc92ef67 & Active\\ commons-lang3-api & 3.21.0-122.v6a\_ea\_4fd34049 & Active\\ commons-text-api & 1.15.0-218.va\_61573470393 & Active\\ credentials & 1487.va\_d001ede2c31 & Active\\ credentials-binding & 728.v902a\_273b\_8947 & Active\\ display-url-api & 2.217.va\_6b\_de84cc74b\_ & Active\\ durable-task & 686.v80ff80875b\_82 & Active\\ eddsa-api & 0.3.0.1-19.vc432d923e5ee & Active\\ git & 5.10.1 & Active\\ git-client & 6.6.1 & Active\\ gitea & 273.vb\_78d13f6d9a\_d & Active\\ gitea-checks & 604.638.ve9e5472551b\_3 & Active\\ gson-api & 2.13.2-173.va\_a\_092315913c & Active\\ handy-uri-templates-2-api & 2.1.8-38.vcea\_5d521d5f3 & Active\\ instance-identity & 203.v15e81a\_1b\_7a\_38 & Active\\ ionicons-api & 94.vcc3065403257 & Active\\ jackson-annotations2-api & 2.22-19.v10a\_a\_582ea\_26e & Active\\ jackson2-api & 2.21.2-436.v29efdb\_7418ff & Active\\ jakarta-activation-api & 2.1.4-1 & Active\\ jakarta-mail-api & 2.1.5-1 & Active\\ jakarta-xml-bind-api & 4.0.9-19.v2b\_a\_5b\_44d9a\_1c & Active\\ javax-activation-api & 1.2.0-8 & Active\\ javax-mail-api & 1.6.2-11 & Active\\ jaxb & 2.3.9-133.vb\_ec76a\_73f706 & Active\\ jdk-tool & 83.v417146707a\_3d & Active\\ joda-time-api & 2.15.0-208.v6b\_084e7a\_d9f0 & Active\\ json-api & 20260814-226.v20f9685d642c & Active\\ mailer & 534.v1b\_36f5864073 & Active\\ mina-sshd-api-common & 2.16.0-167.va\_269f38cc024 & Active\\ mina-sshd-api-core & 2.16.0-167.va\_269f38cc024 & Active\\ pipeline-build-step & 601.v6d4c6d1a\_9dc7 & Active\\ pipeline-graph-analysis & 254.v0f63a\_a\_447dca\_ & Active\\ pipeline-groovy-lib & 798.v5cc688825312 & Active\\ pipeline-input-step & 560.v56198a\_642157 & Active\\ pipeline-milestone-step & 152.v6e22b\_8cfc66c & Active\\ pipeline-model-api & 2.2293.v6e7193cec599 & Active\\ pipeline-model-definition & 2.2293.v6e7193cec599 & Active\\ pipeline-model-extensions & 2.2293.v6e7193cec599 & Active\\ pipeline-rest-api & 2.41 & Active\\ pipeline-stage-step & 345.va\_96187909426 & Active\\ pipeline-stage-tags-metadata & 2.2293.v6e7193cec599 & Active\\ pipeline-stage-view & 2.41 & Active\\ plain-credentials & 199.v9f8e1f741799 & Active\\ plugin-util-api & 6.1192.v30fe6e2837ff & Active\\ scm-api & 728.vc30dcf7a\_0df5 & Active\\ script-security & 1399.ve6a\_66547f6e1 & Active\\ snakeyaml-api & 2.7-152.vc672728cf536 & Active\\ ssh-credentials & 372.va\_250881b\_08cd & Active\\ sshd & 3.374.v19b\_d59ce6610 & Active\\ structs & 362.va\_b\_695ef4fdf9 & Active\\ trilead-api & 2.209.v0e69b\_c43c245 & Active\\ variant & 70.va\_d9f17f859e0 & Active\\ woodstox-core-api & 7.3.0-16.v017f30ed004c & Active\\ workflow-aggregator & 608.v67378e9d3db\_1 & Active\\ workflow-api & 1384.vdc05a\_48f535f & Active\\ workflow-basic-steps & 1098.v808b\_fd7f8cf4 & Active\\ workflow-cps & 4350.vcc65d4958821 & Active\\ workflow-durable-task-step & 1479.v56e587f413a\_7 & Active\\ workflow-job & 1571.1580.v18e46842c125 & Active\\ workflow-multibranch & 841.vec5b\_9e1806ec & Active\\ workflow-scm-step & 487.v41313a\_96b\_65d & Active\\ workflow-step-api & 724.v538c2362b\_dfb\_ & Active\\ workflow-support & 1015.v785e5a\_b\_b\_8b\_22 & Active\\ \end{longtable}\endgroup \input{evidence/chapter4/persistence-note.tex} \section{HTTPS, Access, and Firewall} The complete Jenkins login URL is \url{https://ci.165.227.90.215.sslip.io/login}. This hostname resolves to the existing Droplet; a separate \texttt{ci.sespinal590.dev} DNS record was not required for the working deployment. The login screenshot proves web-service availability only. Pipeline evidence is linked separately \cite{JenkinsReverseProxy,JenkinsSecurity}. \begin{figure}[htbp]\centering \includegraphics[width=0.95\linewidth]{evidence/chapter4/jenkins-login.png} \caption{Live Jenkins HTTPS login page, October 21, 2026. No account was used for this availability screenshot.}\label{Figure:JenkinsLogin} \end{figure} \begin{longtable}{L{4.0cm}L{9.0cm}} \caption{HTTPS, access, and exposure evidence\label{Table:JenkinsHttps}}\\ \toprule Check & Expected and actual result\\\midrule\endfirsthead \toprule Check & Expected and actual result\\\midrule\endhead \bottomrule\endlastfoot DNS and certificate & A record returns \texttt{165.227.90.215}; no AAAA address was returned. The CI certificate subject matches the hostname; issuer Let's Encrypt YE1; valid October 7, 2026 04:04:29 UTC through January 5, 2027 04:04:28 UTC.\\ Redirect and renewal & HTTP \nolinkurl{/login} returns 308 to the same HTTPS path. Caddy automatic HTTPS manages renewal; its \nolinkurl{/data} and \nolinkurl{/config} use persistent Docker volumes. Certificate inspection is not a renewal dry-run.\\ Jenkins URL and headers & Jenkins URL is the HTTPS base URL. Caddy terminates TLS and proxies to \texttt{jenkins:8080}; its reverse-proxy defaults supply forwarding headers. Login, public hostname and service links were checked through this proxy.\\ Authentication & Private Jenkins security realm; self-registration disabled; anonymous read disabled. Named account \texttt{sespinal-admin} administers the service. Existing \texttt{admin} and \texttt{sespinal} accounts also exist under the current logged-in-user full-control strategy; reducing legacy-account privileges is a remaining hardening task.\\ Public mappings & Only Caddy publishes TCP 80/443. Jenkins 8080/50000 and Gitea 3000 are container-internal. UFW reports inactive; it is not credited as an active protective layer.\\ External IPv4 tests & 80 and 443 open; 8080, 50000, 3000 and 5432 timed out from the Windows workstation. These results show non-reachability from this vantage; they do not alone identify which firewall layer dropped traffic.\\ IPv6 & DigitalOcean lists no public IPv6 address; the host has no global IPv6 address and CI DNS has no AAAA record. Docker's wildcard IPv6 publish notation is not evidence of a globally reachable IPv6 host. Deployment assessed as IPv4 only.\\ Current Cloud Firewall & Current account-side inspection was explicitly left pending by Sergio on October 21. Earlier chapter rules and this chapter's external checks are supporting context, not a fresh account-side rule inspection.\\ Browser restriction and instructor path & \input{evidence/chapter4/access-note.tex}\\ Client verification caveat & Windows Schannel curl and the browser reached the valid HTTPS service. A separate Python/OpenSSL request reported an expired-chain validation error; validation was not disabled. An earlier login HEAD request timed out while the service was under load. The final external GET check at 23:31 UTC returned 200 for Jenkins and Gitea, with certificate validation enabled. The initial exceptions and final results are retained separately.\\ \end{longtable} \textbf{Approved private viewing path.} An authorized administrator can run \nolinkurl{ssh -N -L 127.0.0.1:8443:127.0.0.1:443 root@165.227.90.215}. On that workstation, resolve the CI hostname to \texttt{127.0.0.1} through an approved local hosts override, then open \url{https://ci.165.227.90.215.sslip.io:8443/login}. The original hostname preserves certificate validation; the connection reaches Caddy through the host gateway. This is an operator-assisted route, not a newly provisioned instructor account. The tunnel transport was tested with curl hostname-to-loopback mapping: HTTPS login returned 200 with certificate validation enabled; no workstation hosts file was changed during that test. Remove any browser hosts override and close the tunnel afterward. A fresh source authorization is needed if the operator leaves the approved network. The direct approved-source URL remains the primary login link above. Before changing access ranges, keep an approved administrator SSH connection open, validate the proxy configuration, and verify login access through the intended route. The instructor needs to open the complete login URL through the documented approved path, without a Jenkins sign-in. Do not publish a Jenkins agent port to enable grading. \section{Gitea Trigger and Traceability} The product is \href{https://git.sespinal590.dev/group10-startup/startup-product}{\nolinkurl{group10-startup/startup-product}}. Jenkins uses a dedicated restricted, non-administrator \texttt{jenkins-ci} bot. Its sole collaborator grant is this product repository; token scopes are \texttt{write:repository} and \texttt{read:user}. Gitea requires repository write permission for status reporting. The token is stored as Jenkins credential ID \texttt{gitea-startup-ci}, never embedded in the pipeline \cite{GiteaWebhooks,JenkinsSecurity}. \textbf{Implemented trigger: periodic discovery polling.} The assignment permits a demonstrated polling fallback. A one-minute Multibranch Pipeline scan checks origin PR heads and branches without open PRs. Fork PR discovery is disabled. Automatic webhook management is off and no successful webhook delivery is claimed. A proposed webhook host-allowlist edit was not applied; the operator used the allowed polling route instead of broadening Gitea networking. Each new head must receive its own status. Initial indexing failed with \nolinkurl{Unknown server: http://gitea:3000}; registering the private Gitea server in Jenkins resolved the failure. The initial scan discovered PR~9. The corrective push at 23:11:38 UTC was subsequently discovered by the configured scan: run~2 began at 23:12:19 UTC with cause \texttt{Branch indexing}. No manual build or rescan was requested after that push. The log fetched \nolinkurl{refs/pull/9/head} and checked out \texttt{ed8684a2\allowbreak{}897c4079\allowbreak{}46320183\allowbreak{}e572f641\allowbreak{}2dbb7703}. \begin{figure}[htbp]\centering \input{ops/jenkins/deployment-diagram.tex} \caption{Actual Group 10 UML deployment, October 21, 2026. Jenkins polls Gitea privately; no active Gitea-to-Jenkins webhook is claimed. Checkout and tests execute on the controller. The browser access restriction is governed by the access-status evidence in Section~\ref{Section:JenkinsControls}.}\label{Figure:JenkinsArchitecture} \end{figure} The browser follows HTTPS through the Cloud Firewall and Caddy. Jenkins API polling, repository checkout and status publication use the private \texttt{gitea\_default} network and \nolinkurl{http://gitea:3000}. Gitea's SQLite database and repository files live under its persistent \nolinkurl{/data}; Jenkins settings, job and build records live under its persistent home. There is no separate agent connection in this deployment. For a missing run, inspect the last periodic scan, server registration, credential resolution and private Gitea reachability. If later switching to webhooks, inspect selected PR/push events, private destination allowlist, HTTP response and delivery timestamp before looking for a matching commit/run. A delivered webhook alone does not prove a required status was published. \section{Versioned Pipeline and Tests} The instructor expressly permits the minimal Python pricing application. It multiplies unit price by positive quantity and rejects zero or negative quantities. Tests check a three-item total, a single-item price, and invalid quantities. All dependencies are in Python's standard library; no package registry, Docker daemon or socket is needed during tests. The versioned \href{https://git.sespinal590.dev/group10-startup/startup-product/src/commit/ed8684a2897c407946320183e572f6412dbb7703/Jenkinsfile}{root Jenkinsfile} uses explicit checkout, syntax and unit-test stages. \lstinputlisting[caption={Application Jenkinsfile from the repaired PR head}]{ops/jenkins/Jenkinsfile} For a clean reproduction, clone the product repository, check out the repaired commit and run: \begin{lstlisting} python3 -m py_compile pricing.py tests/test_pricing.py python3 -m unittest discover -s tests -v \end{lstlisting} Expected: syntax command exits 0 and all three tests pass. Actual: repaired run~2 checked out the exact latest head and passed all checks. The controller workspace was \nolinkurl{/var/jenkins_home/workspace/startup-product-ci_PR-9}. The bad commit instead returned 13 for \texttt{total\_price(10,3)}, so the test expecting 30 failed. Jenkins returned failure rather than printing an unconditional success message. \begin{table}[htbp]\centering \caption{Sanitized run view derived from Jenkins stage APIs, October 21, 2026}\label{Table:JenkinsStageResults} \begin{tabular}{llll}\toprule Run / commit & Checkout & Syntax & Unit tests\\\midrule \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{PR-9/1} / \texttt{35605c3} & Success & Success & Failed (2 failures)\\ \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{PR-9/2} / \texttt{ed8684a} & Success & Success & Success (3 tests)\\\bottomrule \end{tabular} \end{table} The retained \texttt{failed-stages.json}, \texttt{passed-stages.json} and console excerpts identify each stage, result and checked-out SHA. Run~2 took about 16 seconds. A green run of the old README-only pipeline on \texttt{main} is not counted as the application-test demonstration. \section{Required Merge Gate} The protected branch is \texttt{main}. Its exact required context is \nolinkurl{startup-product-ci/pipeline/pr-main}. Direct pushes and force pushes are disabled; one approval is required; stale approvals are dismissed; rejected reviews block merging; administrator merge override is disabled. The required context was taken from an actual Jenkins-published Gitea status, not guessed from a webhook response \cite{GiteaProtectedBranches}. The native Gitea plugin reports pending and final statuses using the scoped CI credential. Failed commit \texttt{35605c33\allowbreak{}b903742c\allowbreak{}d13d444a\allowbreak{}1a14d61b\allowbreak{}07fbaa86} received failure linked to PR-9/1. Repaired commit \texttt{ed8684a2\allowbreak{}897c4079\allowbreak{}46320183\allowbreak{}e572f641\allowbreak{}2dbb7703} received success linked to PR-9/2. The two images show the required-check state before and after repair. Passing CI removes that blocker; it does not supply the remaining peer approval. \begin{figure}[p]\centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{evidence/chapter4/failed-pr.png} \caption{October 21, 2026: PR~9, failed head \texttt{35605c3}; required context \nolinkurl{startup-product-ci/pipeline/pr-main}. Gitea shows failed required checks and a blocked merge. Matching Jenkins run: \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{PR-9/1}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{pull request}.}\label{Figure:JenkinsFailedGate} \end{figure} \begin{figure}[p]\centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{evidence/chapter4/passed-pr.png} \caption{October 21, 2026: PR~9, repaired head \texttt{ed8684a}; the same required context passes. Gitea still requires one real peer approval. Matching Jenkins run: \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{PR-9/2}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{pull request}.}\label{Figure:JenkinsPassingGate} \end{figure} \clearpage \section{Failure, Repair, and Review} \begin{longtable}{L{3.1cm}L{9.9cm}} \caption{Auditable issue-linked failure and repair, October 21, 2026}\label{Table:JenkinsSequence}\\ \toprule Step & Actual evidence\\\midrule\endfirsthead \toprule Step & Actual evidence\\\midrule\endhead\bottomrule\endlastfoot Issue and PR & \href{https://git.sespinal590.dev/group10-startup/startup-product/issues/8}{Issue 8}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{PR 9}, source \nolinkurl{codex/chapter4-issue-8}, target \texttt{main}. The description contains \texttt{Closes \#8}; a branch name alone would not link the issue.\\ Failed commit & \href{https://git.sespinal590.dev/group10-startup/startup-product/commit/35605c33b903742cd13d444a1a14d61b07fbaa86}{35605c3}: deliberately changed multiplication to addition in the isolated feature branch.\\ Failed run and block & PR-9/1 began 23:08:42 UTC; checkout/syntax passed, two pricing tests failed, final result FAILURE; Gitea marked the required check failed and displayed the merge block.\\ Corrective commit & \href{https://git.sespinal590.dev/group10-startup/startup-product/commit/ed8684a2897c407946320183e572f6412dbb7703}{ed8684a}: restored multiplication and documented clean execution; pushed 23:11:38 UTC on the same branch.\\ Passing run/status & Polling discovered the new head; PR-9/2 began 23:12:19 UTC and passed all three tests; the same Gitea context reported success for that new SHA.\\ Peer review and merge & Pending real teammate review. The captured passing state shows 0/1 approvals and an open PR. No automated or substitute reviewer approval is claimed, and the issue is not claimed closed. Record reviewer, date, review link, merge commit and closed issue after actual completion.\\ \end{longtable} Normal authenticated Git pushes succeeded during this exercise. The earlier direct branch-reference workaround was not used. The deliberate defect affected only the pricing feature branch; no deployed service was intentionally broken. Times above are UTC (local Eastern time is UTC minus four hours on this date). \section{Credentials and Build Boundary} \begin{longtable}{L{4.0cm}L{9.0cm}} \caption{Credential scope and pipeline trust controls\label{Table:JenkinsCredentials}}\\ \toprule Control & Actual implementation or explicit remaining limit\\\midrule\endfirsthead \toprule Control & Actual implementation or explicit remaining limit\\\midrule\endhead\bottomrule\endlastfoot Secret storage & Jenkins administrator secret remains in a protected server-only secret store. The bot token is stored in Jenkins credentials; no secret values are included in the repository, this manual or the evidence excerpts. Temporary setup-token cleanup must be verified at handoff.\\ CI identity & Restricted bot \texttt{jenkins-ci}; non-admin; collaborator only on startup-product; scopes \texttt{write:repository,read:user}. Repository write is required by this integration for commit statuses; the token is therefore sensitive even though its purpose is CI reporting.\\ Pipeline authors & Only trusted team writers may change the same-repository Jenkinsfile. Origin-head discovery is enabled; untrusted fork PR discovery is absent. Do not broaden repository collaborators without reassessing this boundary.\\ Controller execution & Allowed by the assignment for this small trusted deployment. Pipeline code can execute commands on the controller, so a malicious trusted author could compromise it and its credentials. No untrusted code, production secrets, privileged containers or Docker socket are permitted here.\\ Separate agent alternative & Not deployed. Before accepting untrusted contributions, isolate builds in an agent and set controller executors to zero; update the diagram and evidence to match.\\ Plugin operations & Update-center refresh completed successfully on October 21. Four incompatible dependencies were repaired. Newer versions remain available (recorded in \texttt{plugin-update-check.txt}); the current set is a tested inventory, not a claim of full patch currency. Review security advisories and core compatibility before a separately tested upgrade.\\ Troubleshooting response & Earlier stale crumb errors were addressed by retaining the authenticated session cookie with the crumb. CSRF protection stayed enabled. The unknown-server scan failure was corrected by registering the private endpoint; the pricing failure was corrected in code.\\ \end{longtable} \begin{enumerate} \item For a missing run, check scan schedule, latest scan log, registered endpoint, scoped credentials, network route and active plugins. \item For a failed run, compare the exact PR head with the checkout log; locate the first failed stage and reproduce its command from a clean checkout. \item For a missing status or blocked merge, inspect the status API and exact required context on the latest SHA. A passing older commit does not satisfy a new head. Verify peer approvals independently. \item For HTTPS failure, check DNS, certificate validity, Caddy validation/logs, permitted browser source and backend reachability. Inspect cloud rules and Docker mappings separately from UFW. \item For recovery, keep current persistent home and pre-change plugin/configuration copies; restart only the affected service and recheck login, jobs, status publication and plugin failures. Never reset Jenkins home merely to hide an error. \end{enumerate} \section{Manual Quality and Controls}\label{Section:JenkinsControls} This revision records actual commands, expected and observed outcomes, corrective actions, dated screenshots, exact commit/run links and explicit gaps. The written procedures are primary; screenshots support the narrative. \gls{mergegate}, \gls{pipeline}, \gls{leastprivilege}, \gls{reverseproxy}, and \gls{polling} describe the operational controls. \begin{longtable}{L{4.9cm}L{1.6cm}L{6.5cm}} \caption{Chapter 4 rubric evidence status\label{Table:JenkinsRemainingWork}}\\ \toprule Criterion & Points & Evidence and outstanding work\\\midrule\endfirsthead \toprule Criterion & Points & Evidence and outstanding work\\\midrule\endhead\bottomrule\endlastfoot Deployment/persistence & 10 & Official recorded image, Compose, full loaded plugin inventory, capacity and actual restart test.\\ HTTPS/access/firewall & 15 & Live login screenshot/URL, cert/redirect, private backend mappings and IPv4 probes; source restriction verified; current account-side Cloud Firewall rule inspection remains pending.\\ Gitea trigger/traceability & 15 & Working permitted polling fallback; automatic repaired-head detection, private API/checkout/status paths and adapted UML diagram.\\ Pipeline/tests & 15 & Versioned root Jenkinsfile, three real tests, clean-run instructions, distinct stage results and exact head SHAs.\\ Required merge gate & 15 & Exact reported context required by main; failed/passing screenshots, direct-push and override restrictions; passing state still awaits review.\\ Failure/repair/review & 10 & Failed and repaired heads/runs verified on issue-linked PR~9; actual teammate approval and eventual merge remain pending.\\ Credentials/build boundary & 10 & Scoped bot and Jenkins credentials, documented trusted-controller risk, no Docker socket, plugin check and troubleshooting; legacy Jenkins privilege reduction remains advisable.\\ Manual quality/controls & 10 & Version/history, Hosts and Passwords hints, diagram, citations, glossary/index, restart procedures and sanitized evidence updated; the final human review/merge and deferred Cloud Firewall evidence remain outstanding.\\ \end{longtable} This revision\textquotesingle s non-secret source and evidence are retained on the \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/codex/chapter4-jenkins-evidence}{Chapter 4 review branch}. The Hosts and Passwords control tables in \ChapterRef{Gitea} are updated for Jenkins and the CI bot. Password entries contain handling hints only, never passwords, derivation keys, tokens or recovery codes. The dated update-history entry names those changes. Material AI assistance is recorded in \ChapterRef{AIPromptLog}. \textbf{Operator restart:} run \nolinkurl{cd /opt/jenkins && docker compose restart jenkins}; verify login, existing multibranch job, PR run history, URL/executor settings, polling and zero failed plugins. For a replacement container, additionally run the executor bootstrap script. Stopping Jenkins does not retire the shared Gitea service. No additional paid resource was provisioned; the existing Droplet remains billable until the owner shuts it down/deletes it under the team's retention plan. \textbf{Submission:} after the remaining genuine review/merge and access/firewall evidence are complete, compile and inspect the full existing team manual and submit only that PDF. Keep non-secret configuration, source and evidence versioned in Gitea and publish the corresponding source revision before claiming its links are available. Canvas controls the due date and submission location. No video, separate screenshots, Jenkinsfile or backup archive is submitted.