Document verified Chapter 4 Jenkins checks and remaining human evidence
This commit is contained in:
@@ -29,3 +29,6 @@ accounts, created the DigitalOcean firewall in the web console, confirmed DNS
|
||||
record creation, and authorized replacing obsolete teammate-hosted assignment
|
||||
details; Unresolved assumptions: the temporary reviewer account can be
|
||||
replaced by a real teammate account before future production use.
|
||||
|
||||
\section{Chapter 4 Jenkins Record}
|
||||
Date: October 21, 2026; Tool: OpenAI Codex; Task: inspect the existing Jenkins/Gitea setup, complete missing Chapter 4 work and update the manual against Version 1.38. Inputs: instructor PDF, current group source, authorized server checks, Jenkins/Gitea APIs and live browser observations. Output used: repaired plugin dependencies, permitted minimal Python application/tests, scoped CI bot, native multibranch polling, protected-branch check, actual failed/repaired PR evidence, updated narrative, diagram, tables and runbook. Human authorization: Sergio explicitly approved use of the existing server-stored Jenkins administrator credential. Corrections: retained real plugin/indexing/test failures; selected the permitted polling route after a proposed webhook-network change was not approved. No teammate review or merge is invented. Outstanding access/firewall and human-review items remain identified. The full-document build and visual inspection are recorded in the handoff verification note.
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
\usepackage{xspace}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows.meta,fit}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{array}
|
||||
@@ -37,13 +39,13 @@
|
||||
% Replace these values for each assignment.
|
||||
\newcommand{\AssignmentTitle}{Group 10 DevOps Project}
|
||||
\newcommand{\AssignmentNumber}{}
|
||||
\newcommand{\DocumentVersion}{1.9}
|
||||
\newcommand{\DocumentVersion}{1.10}
|
||||
\newcommand{\DocumentStatus}{Active}
|
||||
\newcommand{\CourseNumber}{SSW 590}
|
||||
\newcommand{\CourseName}{DevOps}
|
||||
\newcommand{\Instructor}{Darian Muresan}
|
||||
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||
\newcommand{\DocumentDate}{October 13, 2026}
|
||||
\newcommand{\DocumentDate}{October 21, 2026}
|
||||
\newcommand{\DueDate}{}
|
||||
\newcommand{\VERSION}{Version \DocumentVersion}
|
||||
\input{devopsBuildMetadata.tex}
|
||||
|
||||
@@ -22,6 +22,9 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
|
||||
October 21, 2026 / 1.10 & SE, CDX &
|
||||
Implemented Chapter 4 Jenkins PR-head checks: repaired dependency loading, added real pricing tests, verified failed and repaired commits on issue-linked PR~9, configured a required check and peer approval, retained actual run/status/screenshots, and updated the deployment diagram and runbook. Updated the Hosts table with Jenkins/executor/network details and the Passwords table with CI credential-handling hints. Applied and verified the explicitly approved Jenkins browser source restriction. Real peer review/merge and current Cloud Firewall rule evidence remain explicitly pending. &
|
||||
\ChapterRef{Jenkins}, \hyperref[Table:JenkinsRemainingWork]{rubric evidence}, \hyperref[Table:GiteaHosts]{Hosts}, \hyperref[Table:GiteaPasswordHints]{Passwords}\\
|
||||
October 13, 2026 / 1.9 & SE, CDX &
|
||||
Completed the corrected Chapter 3 Gitea Actions evidence after SSH access was restored: registered the Windows LaTeX runner, pushed the manual workflow to Gitea, recorded successful main-branch builds, captured a controlled failed build, repaired it, and updated the artifact, runner, traceability, and rubric-status evidence while preserving the Jenkins chapter as Chapter 4 groundwork. &
|
||||
\ChapterRef{GiteaActions}, \hyperref[Table:GiteaActionsRunner]{runner setup},
|
||||
|
||||
@@ -55,6 +55,9 @@ Plan & \texttt{s-1vcpu-512mb-10gb} & Lowest-cost plan available in the create Dr
|
||||
Public IPv4 & \texttt{165.227.90.215} & External address used by DNS and browser testing.\\
|
||||
Private IPv4 & \texttt{10.116.0.3} & Internal VPC address, not exposed directly to users.\\
|
||||
SSH key & \texttt{espinKey1DigitalOceanDroplet} & Key-based access for administration.\\
|
||||
Jenkins CI host & \url{https://ci.165.227.90.215.sslip.io/login} & Same controlled Droplet; private backend \texttt{jenkins:8080}; details and current access boundary in \ChapterRef{Jenkins}.\\
|
||||
Jenkins executor/storage & One trusted controller executor; \texttt{/opt/jenkins/home} & Python 3.13.5, Git 2.47.3; no separate agent or Docker socket.\\
|
||||
CI integration identity & \texttt{jenkins-ci} on Gitea & Restricted bot with access only to startup-product; Jenkins credential ID \texttt{gitea-startup-ci}.\\
|
||||
\end{longtable}
|
||||
|
||||
The service stack uses pinned container image versions so future rebuilds are predictable.
|
||||
@@ -394,6 +397,10 @@ The persistence test in Table~\ref{Table:GiteaPersistence} and the backup/restor
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Jenkins named admin & Use the approved server-only secret store; never copy a password, derivation key or recovery code into the manual. Named administrator: \texttt{sespinal-admin}.\\
|
||||
Jenkins CI token handling & Token-only restricted Gitea bot; use Jenkins credential \texttt{gitea-startup-ci}; repository/status scope only, no value shown. Rotate/revoke through the operator's approved secret process.\\
|
||||
Chapter 4 setup credential & Temporary repository setup token is operational only and must be revoked after publishing the final source/evidence; do not retain it in Git or the PDF.\\
|
||||
|
||||
DigitalOcean account & Payment details are entered manually by the account owner and are not recorded.\\
|
||||
Name.com account & Contact, address, phone, and payment details are excluded from screenshots or text.\\
|
||||
Gitea administrator password & Password is known only to the account owner and is not placed in Git, Overleaf, screenshots, or prompts.\\
|
||||
|
||||
@@ -24,3 +24,5 @@
|
||||
\newglossaryentry{artifact}{name={artifact},description={A build output retained by a workflow run, such as a generated PDF, for later download and review}}
|
||||
\newglossaryentry{runner}{name={runner},description={A self-managed service that polls Gitea for workflow jobs and executes them in a configured environment}}
|
||||
|
||||
|
||||
\newglossaryentry{polling}{name={polling},description={Periodic requests that discover repository changes and trigger verification without an inbound webhook}}
|
||||
|
||||
+247
-148
@@ -1,169 +1,268 @@
|
||||
\chapter{Continuous Integration with Jenkins}
|
||||
\ChapterLabel{Jenkins}
|
||||
\index{Jenkins}
|
||||
\index{continuous integration}
|
||||
\index{merge gate}
|
||||
\index{webhook}
|
||||
\index{Jenkins}\index{continuous integration}\index{merge gate}\index{polling}\index{webhook}
|
||||
|
||||
\section{Jenkins Deployment and Persistence}
|
||||
This chapter records the Chapter 3 continuous-integration work performed on October 7, 2026. The goal was to add Jenkins to the same startup environment used for the Gitea foundation, connect it to the startup product repository, and use it as the required status check for pull requests. Jenkins was deployed from the official Jenkins LTS container image and placed on the same private Docker network as Gitea and Caddy \cite{JenkinsDocker,JenkinsSecurity,JenkinsReverseProxy,GiteaWebhooks,GiteaProtectedBranches}.
|
||||
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}[Evidence Boundary]
|
||||
The infrastructure deployment, HTTPS proxy, raw-port blocking, Jenkins startup, plugin installation attempt, and versioned non-secret configuration were completed. The full Gitea webhook, status publication, branch-protection merge gate, and failed-then-repaired pull request were not completed because Jenkins plugin dependencies failed to load and the Jenkins API job-creation attempt was blocked by CSRF/plugin state during follow-up configuration. Those gaps are recorded in Table~\ref{Table:JenkinsRemainingWork} rather than being marked complete.
|
||||
\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.2cm}}
|
||||
\caption{Jenkins Deployment and Persistence Evidence\label{Table:JenkinsDeployment}}\\
|
||||
\toprule
|
||||
\textbf{Item} & \textbf{Observed or Configured Value}\\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
\toprule
|
||||
\textbf{Item} & \textbf{Observed or Configured Value}\\
|
||||
\midrule
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Host & Existing DigitalOcean Droplet \texttt{sergio-ssw590-gitea}, public IPv4 \texttt{165.227.90.215}.\\
|
||||
Capacity before Jenkins & Approximately \texttt{458 MiB} memory, \texttt{8.7 GiB} root filesystem, and no swap.\\
|
||||
Capacity change & A \texttt{1 GiB} swap file was added at \texttt{/swapfile} to keep Jenkins from exhausting the small Droplet.\\
|
||||
Jenkins image & \texttt{jenkins/jenkins:2.528.1-lts-jdk21}.\\
|
||||
Persistent home & Host path \texttt{/opt/jenkins/home} mounted to \texttt{/var/jenkins\_home}.\\
|
||||
Restart policy & \texttt{unless-stopped} in \texttt{ops/jenkins/compose.yml}.\\
|
||||
Controller executors & Configured as one controller executor with label \texttt{controller-small-trusted}. This is acceptable only for the small trusted class deployment and should be replaced by a separate agent for untrusted pull requests.\\
|
||||
Administrator account & Named account \texttt{sespinal-admin}; password stored only on the Droplet under \texttt{/root/jenkins-secrets/admin-password}. The first-boot generated setup password was rotated out of operational use.\\
|
||||
Restart evidence & Jenkins restarted through Docker Compose and returned \texttt{Jenkins is fully up and running}.\\
|
||||
\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}
|
||||
|
||||
\section{HTTPS, Access, and Firewall}
|
||||
Jenkins was not published directly on host port \texttt{8080}. The container exposes \texttt{8080/tcp} only inside Docker networking, and Caddy reverse proxies the public HTTPS hostname to \texttt{jenkins:8080}. Because no \texttt{ci.sespinal590.dev} DNS record existed at the time of implementation, the working Jenkins hostname used for this assignment evidence is \url{https://ci.165.227.90.215.sslip.io/}.
|
||||
|
||||
\begin{longtable}{L{4.0cm}L{9.2cm}}
|
||||
\caption{Jenkins HTTPS and Exposure Checks\label{Table:JenkinsHttps}}\\
|
||||
\toprule
|
||||
\textbf{Check} & \textbf{Observed Result}\\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
\toprule
|
||||
\textbf{Check} & \textbf{Observed Result}\\
|
||||
\midrule
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Caddy configuration & Added a second Caddy site block for \texttt{ci.165.227.90.215.sslip.io} with \texttt{reverse\_proxy jenkins:8080}.\\
|
||||
HTTP behavior & \texttt{http://ci.165.227.90.215.sslip.io/} returned \texttt{308 Permanent Redirect}.\\
|
||||
HTTPS behavior & \texttt{https://ci.165.227.90.215.sslip.io/} returned \texttt{HTTP/2 403} from Jenkins before login, proving the browser reached Jenkins through Caddy and Jenkins required authentication.\\
|
||||
Certificate & Caddy obtained a Let's Encrypt certificate for \texttt{ci.165.227.90.215.sslip.io} using the HTTP-01 challenge.\\
|
||||
Raw Jenkins port & External test to \texttt{ci.165.227.90.215.sslip.io:8080} failed, which is the expected result because port \texttt{8080} is not publicly published.\\
|
||||
Agent port & Jenkins showed container port \texttt{50000/tcp} internally only; it was not published on the host. No inbound agent port was opened for this assignment.\\
|
||||
Access control & Jenkins requires login. Additional browser source restriction should be added at Caddy or firewall level before real team use.\\
|
||||
\end{longtable}
|
||||
|
||||
\section{Gitea Trigger and Traceability}
|
||||
Jenkins and Gitea share the Docker network, so the intended webhook route is private service-to-service traffic from Gitea to Jenkins, while browser traffic reaches Jenkins through Caddy.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\fbox{\begin{minipage}{0.88\linewidth}
|
||||
\centering
|
||||
\textbf{Team Browser}\\
|
||||
\texttt{https://ci.165.227.90.215.sslip.io}\\[4pt]
|
||||
$\Downarrow$\\[4pt]
|
||||
\textbf{DigitalOcean Cloud Firewall}\\
|
||||
Public 80/443 only; no public 8080 or 50000\\[4pt]
|
||||
$\Downarrow$\\[4pt]
|
||||
\textbf{Caddy Container}\\
|
||||
TLS termination and reverse proxy\\[4pt]
|
||||
$\Downarrow$\\[4pt]
|
||||
\textbf{Jenkins Container}\\
|
||||
CI controller, trusted small-class executor\\[4pt]
|
||||
$\Uparrow$\\[4pt]
|
||||
\textbf{Gitea Container}\\
|
||||
Future webhook path over the private Docker network
|
||||
\end{minipage}}
|
||||
\caption{Jenkins and Gitea integration boundary}
|
||||
\label{Figure:JenkinsArchitecture}
|
||||
\end{figure}
|
||||
|
||||
The startup repository is \href{https://git.sespinal590.dev/group10-startup/startup-product}{\texttt{group10-startup/startup-product}}. Jenkins was able to reach the repository URL from inside the Jenkins container, and \texttt{git ls-remote} returned commit \texttt{ff266cf} before the Jenkinsfile was added. The Jenkinsfile was then added to the repository as commit \texttt{b0eee02}. A local Gitea filesystem hook issue prevented a normal host-side push, so the operator moved the class repository's branch reference from inside the Gitea container. That action is adequate for a lab setup but is not a substitute for the required pull-request workflow evidence.
|
||||
|
||||
\section{Versioned Pipeline and Tests}
|
||||
The versioned pipeline source is stored in \texttt{ops/jenkins/Jenkinsfile} in this manual repository and was copied into the startup product repository as \texttt{Jenkinsfile}. It contains three stages: checkout, lint, and automated test. The lint step checks for the expected \texttt{README.md} and verifies that it names the startup. The automated test step prints a CI smoke-test marker and lists repository files so the run proves it executed against a real checkout.
|
||||
|
||||
\begin{lstlisting}[caption={Jenkinsfile CI stages},label={Listing:JenkinsfileSummary}]
|
||||
stage('Lint') {
|
||||
sh 'test -f README.md && grep -qi "startup" README.md'
|
||||
}
|
||||
stage('Automated Test') {
|
||||
sh 'find . -maxdepth 2 -type f | sort | head -20'
|
||||
}
|
||||
\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 required merge gate is not yet complete. Gitea branch protection still needs to require the Jenkins status context on pull-request head commits. The exact status context should be the Jenkins job or Gitea Checks context selected after the Jenkins Gitea integration plugin loads successfully. A successful webhook delivery is not enough; the Gitea pull request must show a required check that blocks merge while failing and permits the normal review process after passing.
|
||||
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}
|
||||
The failed-then-repaired pull request sequence remains pending. The required evidence sequence should use one issue-linked pull request and show: failed commit, failed Jenkins run, blocked merge, repair commit, passing run, peer review, and merge. This manual currently does not claim that evidence because no Jenkins status check was successfully published back to Gitea.
|
||||
\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.2cm}}
|
||||
\caption{Jenkins Credentials and Build Boundary\label{Table:JenkinsCredentials}}\\
|
||||
\toprule
|
||||
\textbf{Control} & \textbf{Implementation or Required Follow-up}\\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
\toprule
|
||||
\textbf{Control} & \textbf{Implementation or Required Follow-up}\\
|
||||
\midrule
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Jenkins administrator credential & Stored only on the Droplet in \texttt{/root/jenkins-secrets/admin-password}; not committed to Git or printed in this manual.\\
|
||||
Initial setup password & Jenkins printed a generated first-boot password in container logs. It was replaced operationally by the named admin account and should be rotated again before long-term use.\\
|
||||
Gitea integration token & Pending. A narrow token should be created for repository read and status/check reporting only.\\
|
||||
Build location & Builds currently run on the controller because this is a small trusted course deployment. This is a risk: untrusted Jenkinsfile authors could execute commands on the controller.\\
|
||||
Compensating restriction & Only trusted team members should be able to edit the Jenkinsfile until a separate build agent is deployed and secrets are isolated from untrusted pull requests.\\
|
||||
\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{longtable}{L{4.0cm}L{9.2cm}}
|
||||
\caption{Jenkins Plugin Check and Operator Response\label{Table:JenkinsPluginCheck}}\\
|
||||
\toprule
|
||||
\textbf{Plugin or Check} & \textbf{Result}\\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
\toprule
|
||||
\textbf{Plugin or Check} & \textbf{Result}\\
|
||||
\midrule
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Installed plugin attempt & \texttt{git}, \texttt{workflow-aggregator}, \texttt{pipeline-stage-view}, \texttt{gitea}, and \texttt{gitea-checks}.\\
|
||||
Recorded plugin versions & Git \texttt{5.10.1}, Pipeline \texttt{608.v67378e9d3db\_1}, Pipeline Stage View \texttt{2.41}, Gitea \texttt{273.vb\_78d13f6d9a\_d}, and Gitea Checks \texttt{604.638.ve9e5472551b\_3}.\\
|
||||
Plugin warning & Jenkins reported security advisories for some Pipeline-related plugins during installation.\\
|
||||
Plugin failure & Jenkins logs reported dependency failures requiring newer \texttt{bouncycastle-api}, \texttt{caffeine-api}, and \texttt{gson-api} plugins. A repair attempt was made, but the failures persisted in the last observed logs.\\
|
||||
Operator response & The issue was recorded as a blocker. The correct next action is to update the Jenkins base image or reset the plugin catalog/home state, then reinstall plugins and re-run the Gitea check integration.\\
|
||||
\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}
|
||||
|
||||
\section{Manual Quality and Controls}
|
||||
\begin{longtable}{L{4.4cm}L{2.0cm}L{6.8cm}}
|
||||
\caption{Chapter 3 Rubric Evidence Status\label{Table:JenkinsRemainingWork}}\\
|
||||
\toprule
|
||||
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence or Gap}\\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
\toprule
|
||||
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence or Gap}\\
|
||||
\midrule
|
||||
\endhead
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
Jenkins deployment and persistence & Partial & Jenkins container, persistent home, restart policy, swap, named admin account, and restart evidence are documented. A longer restart persistence screenshot/check should be captured after browser login.\\
|
||||
HTTPS, access control, and firewall & Partial & HTTPS, redirect, certificate acquisition, login requirement, and blocked raw port \texttt{8080} are documented. Browser source restriction still needs tightening.\\
|
||||
Gitea trigger and traceable Jenkins run & Pending & Jenkins can reach the repository, but webhook delivery and matching Jenkins run are not proven.\\
|
||||
Versioned pipeline with meaningful build and tests & Partial & Jenkinsfile is versioned and committed as \texttt{b0eee02}; Jenkins plugin/API issues blocked the final run evidence.\\
|
||||
Required Gitea status check and merge gate & Pending & Branch protection and required Jenkins context still need configuration after plugin repair.\\
|
||||
Failed-then-repaired, reviewed pull request & Pending & No failed/repaired PR sequence has been completed.\\
|
||||
Credentials, pipeline trust boundary, and plugin operations & Partial & Credentials are not committed; controller-build risk and plugin failures are documented.\\
|
||||
Versioned IT manual, history, Hosts/Passwords hints, and evidence & Complete for current state & Version 1.7, this history entry, Jenkins host/password controls, deployment artifacts, citations, glossary/index terms, and honest blockers are included.\\
|
||||
\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.
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# Chapter 4 handoff — 2026-10-21
|
||||
|
||||
## Verified
|
||||
|
||||
- Jenkins 2.528.1 official LTS container; zero failed plugins after four dependency repairs.
|
||||
- Python 3.13.5 / Git 2.47.3; real syntax check and three pricing unit tests.
|
||||
- Issue 8: https://git.sespinal590.dev/group10-startup/startup-product/issues/8
|
||||
- PR 9: https://git.sespinal590.dev/group10-startup/startup-product/pulls/9
|
||||
- Failed head 35605c33b903742cd13d444a1a14d61b07fbaa86, PR-9/1: two failing tests, required-check merge block.
|
||||
- Repaired head ed8684a2897c407946320183e572f6412dbb7703, PR-9/2: all three tests pass; periodic scan detected the corrective push without a manual build/rescan.
|
||||
- Required context startup-product-ci/pipeline/pr-main; main requires one real approval, dismisses stale approvals, disallows direct/force pushes and admin merge override.
|
||||
- Container restart retained the job XML hash, successful run, URL, executor, polling and active-plugin state.
|
||||
- HTTPS login URL, hostname certificate/expiry, 308 redirect and live login screenshot retained.
|
||||
- User explicitly approved CI browser allowlist 155.246.151.38/32 and host gateway 172.18.0.1/32; approved-source GET 200, excluded-container HTTPS 403, administrator SSH tunnel GET 200.
|
||||
- External IPv4 backend/agent/database probes timed out; no public host IPv6/AAAA. UFW is inactive and is not credited as an active firewall.
|
||||
- Full group PDF builds with bibliography, glossary and index; affected chapter pages visually reviewed. No unresolved reference/citation warnings. Older chapters retain existing layout warnings.
|
||||
|
||||
## Pending, not claimed complete
|
||||
|
||||
1. Turan's actual peer approval and subsequent merge of PR 9. Sergio will arrange the real review. After it exists, retain reviewer/time/link, merge SHA, and closed issue before the submission build.
|
||||
2. Current account-side DigitalOcean Cloud Firewall rule inspection/export. Sergio explicitly asked to leave this pending. Do not infer the rule set from port timeouts or the older manual.
|
||||
3. Legacy Jenkins account privilege reduction and a separately tested core/plugin security-update plan remain operational hardening limits; the active full-control-after-login strategy and available plugin updates are documented.
|
||||
|
||||
## Source/evidence
|
||||
|
||||
Review branch: codex/chapter4-jenkins-evidence in the Gitea devops-it-manual repository. All retained evidence comes from actual service/API/browser observations. Screenshot captions identify dates, heads, context and runs. The manual is version 1.10 and remains an evidence draft until the pending rubric evidence is completed. Do not submit the source directory, screenshot files, or archives separately: submit only the final compiled PDF.
|
||||
|
||||
The Jenkinsfile/application live in the product PR. Deployment/configuration/runbook/inventory and sanitized evidence live with this manual. No new paid resources were provisioned. Keep real credentials outside this source. Temporary setup credential cleanup is recorded separately in cleanup.json when completed.
|
||||
@@ -0,0 +1 @@
|
||||
Applied with Sergio's explicit approval on October 21, 2026: Caddy admits the current team source \nolinkurl{155.246.151.38/32} and host tunnel gateway \nolinkurl{172.18.0.1/32} for this Jenkins hostname. Approved external access returned 200; an excluded container source received 403 with certificate validation enabled. Gitea's separate hostname is unchanged. For instructor access, arrange an operator-supervised browser on the approved team network, or have an approved administrator establish the SSH tunnel described below. Add any different instructor/team source only after authorization; no instructor Jenkins sign-in is required.
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"checked_at": "2026-10-21T23:22:39.342537+00:00",
|
||||
"negative_source": "Jenkins container (not in Caddy browser allowlist), using private Caddy address with real HTTPS hostname and certificate validation",
|
||||
"negative_result": "HTTP/1.1 403 Forbidden\nAlt-Svc: h3=\":443\"; ma=2592000\nContent-Type: text/plain; charset=utf-8\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:22:39 GMT\nContent-Length: 72\nConnection: close\n",
|
||||
"negative_error": "",
|
||||
"exit_code": 0,
|
||||
"approved_ranges": "Explicit user approval: current team IPv4 /32 and Docker host tunnel gateway /32",
|
||||
"no_gitea_change": true,
|
||||
"caddy_validation": "{\"level\":\"info\",\"ts\":1792624959.8015752,\"msg\":\"using config from file\",\"file\":\"/etc/caddy/Caddyfile\"}\n{\"level\":\"info\",\"ts\":1792624959.809916,\"msg\":\"adapted config to JSON\",\"adapter\":\"caddyfile\"}\n{\"level\":\"warn\",\"ts\":1792624959.8102844,\"msg\":\"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies\",\"adapter\":\"caddyfile\",\"file\":\"/etc/caddy/Caddyfile\",\"line\":2}\n{\"level\":\"info\",\"ts\":1792624959.8118005,\"logger\":\"http.auto_https\",\"msg\":\"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS\",\"server_name\":\"srv0\",\"https_port\":443}\n{\"level\":\"info\",\"ts\":1792624959.8122551,\"logger\":\"http.auto_https\",\"msg\":\"enabling automatic HTTP->HTTPS redirects\",\"server_name\":\"srv0\"}\n{\"level\":\"info\",\"ts\":1792624959.8142786,\"logger\":\"http\",\"msg\":\"servers shutting down with eternal grace period\"}\n{\"level\":\"info\",\"ts\":1792624959.8152323,\"logger\":\"tls.cache.maintenance\",\"msg\":\"started background certificate maintenance\",\"cache\":\"0xc000458a80\"}\n{\"level\":\"info\",\"ts\":1792624959.8164768,\"logger\":\"tls.cache.maintenance\",\"msg\":\"stopped background certificate maintenance\",\"cache\":\"0xc000458a80\"}\nValid configuration\n"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"branch_name": "main",
|
||||
"rule_name": "main",
|
||||
"priority": 1,
|
||||
"enable_push": false,
|
||||
"enable_push_whitelist": false,
|
||||
"push_whitelist_usernames": [],
|
||||
"push_whitelist_teams": [],
|
||||
"push_whitelist_deploy_keys": false,
|
||||
"enable_force_push": false,
|
||||
"enable_force_push_allowlist": false,
|
||||
"force_push_allowlist_usernames": [],
|
||||
"force_push_allowlist_teams": [],
|
||||
"force_push_allowlist_deploy_keys": false,
|
||||
"enable_merge_whitelist": false,
|
||||
"merge_whitelist_usernames": [],
|
||||
"merge_whitelist_teams": [],
|
||||
"enable_bypass_allowlist": false,
|
||||
"bypass_allowlist_usernames": [],
|
||||
"bypass_allowlist_teams": [],
|
||||
"enable_status_check": true,
|
||||
"status_check_contexts": [
|
||||
"startup-product-ci/pipeline/pr-main"
|
||||
],
|
||||
"required_approvals": 1,
|
||||
"enable_approvals_whitelist": false,
|
||||
"approvals_whitelist_username": [],
|
||||
"approvals_whitelist_teams": [],
|
||||
"block_on_rejected_reviews": true,
|
||||
"block_on_official_review_requests": false,
|
||||
"block_on_outdated_branch": false,
|
||||
"dismiss_stale_approvals": true,
|
||||
"ignore_stale_approvals": false,
|
||||
"require_signed_commits": false,
|
||||
"protected_file_patterns": "",
|
||||
"unprotected_file_patterns": "",
|
||||
"block_admin_merge_override": true,
|
||||
"created_at": "2026-10-21T23:09:26Z",
|
||||
"updated_at": "2026-10-21T23:09:26Z"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,95 @@
|
||||
Branch indexing
|
||||
Looking up repository group10-startup/startup-product
|
||||
Querying the current revision of pull request #9...
|
||||
Current revision of pull request #9 is 35605c33b903742cd13d444a1a14d61b07fbaa86
|
||||
Obtained Jenkinsfile from 35605c33b903742cd13d444a1a14d61b07fbaa86
|
||||
[Pipeline] Start of Pipeline
|
||||
[Pipeline] node
|
||||
Running on Jenkins in /var/jenkins_home/workspace/startup-product-ci_PR-9
|
||||
[Pipeline] {
|
||||
[Pipeline] timeout
|
||||
Timeout set to expire in 5 min 0 sec
|
||||
[Pipeline] {
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Checkout)
|
||||
[Pipeline] checkout
|
||||
The recommended git tool is: NONE
|
||||
using credential gitea-startup-ci
|
||||
Cloning the remote Git repository
|
||||
Cloning with configured refspecs honoured and without tags
|
||||
Cloning repository http://gitea:3000/group10-startup/startup-product.git
|
||||
> git init /var/jenkins_home/workspace/startup-product-ci_PR-9 # timeout=10
|
||||
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
|
||||
> git --version # timeout=10
|
||||
> git --version # 'git version 2.47.3'
|
||||
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
|
||||
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
|
||||
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
|
||||
> git config --add remote.origin.fetch +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
|
||||
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
|
||||
Fetching without tags
|
||||
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
|
||||
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
|
||||
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
|
||||
Checking out Revision 35605c33b903742cd13d444a1a14d61b07fbaa86 (codex/chapter4-issue-8)
|
||||
> git config core.sparsecheckout # timeout=10
|
||||
> git checkout -f 35605c33b903742cd13d444a1a14d61b07fbaa86 # timeout=10
|
||||
Commit message: "Add pricing checks and controlled defect for issue #8"
|
||||
First time build. Skipping changelog.
|
||||
[Gitea] Notifying pull request build status: PENDING Build started...
|
||||
[Gitea] Notified
|
||||
[Pipeline] sh
|
||||
+ git rev-parse HEAD
|
||||
35605c33b903742cd13d444a1a14d61b07fbaa86
|
||||
+ python3 --version
|
||||
Python 3.13.5
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Syntax check)
|
||||
[Pipeline] sh
|
||||
+ python3 -m py_compile pricing.py tests/test_pricing.py
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Unit tests)
|
||||
[Pipeline] sh
|
||||
+ python3 -m unittest discover -s tests -v
|
||||
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
|
||||
test_single_item (test_pricing.PricingTests.test_single_item) ... FAIL
|
||||
test_total (test_pricing.PricingTests.test_total) ... FAIL
|
||||
|
||||
======================================================================
|
||||
FAIL: test_single_item (test_pricing.PricingTests.test_single_item)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/var/jenkins_home/workspace/startup-product-ci_PR-9/tests/test_pricing.py", line 11, in test_single_item
|
||||
self.assertEqual(total_price(12.5, 1), 12.5)
|
||||
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AssertionError: 13.5 != 12.5
|
||||
|
||||
======================================================================
|
||||
FAIL: test_total (test_pricing.PricingTests.test_total)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/var/jenkins_home/workspace/startup-product-ci_PR-9/tests/test_pricing.py", line 8, in test_total
|
||||
self.assertEqual(total_price(10, 3), 30)
|
||||
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
AssertionError: 13 != 30
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 3 tests in 0.005s
|
||||
|
||||
FAILED (failures=2)
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] }
|
||||
[Pipeline] // timeout
|
||||
[Pipeline] }
|
||||
[Pipeline] // node
|
||||
[Pipeline] End of Pipeline
|
||||
ERROR: script returned exit code 1
|
||||
[Gitea] Notifying pull request build status: FAILURE There was a failure building this commit
|
||||
[Gitea] Notified
|
||||
[Gitea] do not publish assets due to build being non-Successfully
|
||||
Finished: FAILURE
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
@@ -0,0 +1 @@
|
||||
{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/wfapi/describe"}},"id":"1","name":"#1","status":"FAILED","startTimeMillis":1792624122694,"endTimeMillis":1792624177242,"durationMillis":54548,"queueDurationMillis":95,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/8/wfapi/describe"}},"id":"8","name":"Checkout","execNode":"","status":"SUCCESS","startTimeMillis":1792624147039,"durationMillis":17686,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/14/wfapi/describe"}},"id":"14","name":"Syntax check","execNode":"","status":"SUCCESS","startTimeMillis":1792624164984,"durationMillis":1438,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/19/wfapi/describe"}},"id":"19","name":"Unit tests","execNode":"","status":"FAILED","error":{"message":"script returned exit code 1","type":"hudson.AbortException"},"startTimeMillis":1792624166589,"durationMillis":8677,"pauseDurationMillis":0}]}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"state": "failure",
|
||||
"sha": "35605c33b903742cd13d444a1a14d61b07fbaa86",
|
||||
"total_count": 1,
|
||||
"statuses": [
|
||||
{
|
||||
"id": 3,
|
||||
"status": "failure",
|
||||
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/display/redirect",
|
||||
"description": "There was a failure building this commit",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/statuses/35605c33b903742cd13d444a1a14d61b07fbaa86",
|
||||
"context": "startup-product-ci/pipeline/pr-main",
|
||||
"creator": {
|
||||
"id": 13,
|
||||
"login": "jenkins-ci",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "13+jenkins-ci@noreply.git.sespinal590.dev",
|
||||
"avatar_url": "https://git.sespinal590.dev/avatars/c6625ee715debdbdf5ddfde2ed4f987c",
|
||||
"html_url": "https://git.sespinal590.dev/jenkins-ci",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-10-21T23:05:31Z",
|
||||
"restricted": true,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "jenkins-ci"
|
||||
},
|
||||
"created_at": "2026-10-21T23:09:38Z",
|
||||
"updated_at": "2026-10-21T23:09:38Z"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"id": 1,
|
||||
"owner": {
|
||||
"id": 2,
|
||||
"login": "group10-startup",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "Group 10 Startup",
|
||||
"email": "",
|
||||
"avatar_url": "https://git.sespinal590.dev/avatars/f1149afff214b4ad4a008d22b56ca09a",
|
||||
"html_url": "https://git.sespinal590.dev/group10-startup",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-09-28T23:59:09Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "SSW 590 startup organization for the Gitea foundation assignment.",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "group10-startup"
|
||||
},
|
||||
"name": "startup-product",
|
||||
"full_name": "group10-startup/startup-product",
|
||||
"description": "Product repository for the SSW 590 startup workflow demonstration.",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 33,
|
||||
"language": "",
|
||||
"languages_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/languages",
|
||||
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product",
|
||||
"link": "",
|
||||
"ssh_url": "git@git.sespinal590.dev:group10-startup/startup-product.git",
|
||||
"clone_url": "https://git.sespinal590.dev/group10-startup/startup-product.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 4,
|
||||
"open_issues_count": 4,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-28T23:59:09Z",
|
||||
"updated_at": "2026-10-21T23:07:44Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": []
|
||||
},
|
||||
"commit_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/35605c33b903742cd13d444a1a14d61b07fbaa86",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/35605c33b903742cd13d444a1a14d61b07fbaa86/status"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"checked_at": "2026-10-21T23:15:51.960464+00:00",
|
||||
"vantage": "External Windows team workstation; IPv4",
|
||||
"host": "ci.165.227.90.215.sslip.io",
|
||||
"ipv4": "165.227.90.215",
|
||||
"ports": [
|
||||
{
|
||||
"port": 80,
|
||||
"result": "OPEN"
|
||||
},
|
||||
{
|
||||
"port": 443,
|
||||
"result": "OPEN"
|
||||
},
|
||||
{
|
||||
"port": 8080,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 50000,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 3000,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 5432,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"url": "http://ci.165.227.90.215.sslip.io/login",
|
||||
"curl_exit": 0,
|
||||
"headers": "HTTP/1.1 308 Permanent Redirect\nConnection: close\nLocation: https://ci.165.227.90.215.sslip.io/login\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:15:54 GMT\n",
|
||||
"error": ""
|
||||
},
|
||||
{
|
||||
"url": "https://ci.165.227.90.215.sslip.io/login",
|
||||
"curl_exit": 28,
|
||||
"headers": "",
|
||||
"error": "curl: (28) Operation timed out after 25002 milliseconds with 0 bytes received\n"
|
||||
},
|
||||
{
|
||||
"url": "https://git.sespinal590.dev/",
|
||||
"curl_exit": 0,
|
||||
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nDate: Wed, 21 Oct 2026 23:16:20 GMT\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\n",
|
||||
"error": ""
|
||||
}
|
||||
],
|
||||
"ipv6_records": [],
|
||||
"tls_validation": "curl uses the Windows Schannel trust store with verification enabled. The separate Python/OpenSSL attempt reported an expired-chain error; retained as a client trust-store discrepancy, not bypassed."
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"checked_at": "2026-10-21T23:31:35.061144+00:00",
|
||||
"vantage": "External Windows team workstation; IPv4",
|
||||
"host": "ci.165.227.90.215.sslip.io",
|
||||
"ipv4": "165.227.90.215",
|
||||
"ports": [
|
||||
{
|
||||
"port": 80,
|
||||
"result": "OPEN"
|
||||
},
|
||||
{
|
||||
"port": 443,
|
||||
"result": "OPEN"
|
||||
},
|
||||
{
|
||||
"port": 8080,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 50000,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 3000,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
},
|
||||
{
|
||||
"port": 5432,
|
||||
"result": "BLOCKED/UNREACHABLE",
|
||||
"detail": "TimeoutError"
|
||||
}
|
||||
],
|
||||
"http": [
|
||||
{
|
||||
"url": "http://ci.165.227.90.215.sslip.io/login",
|
||||
"curl_exit": 0,
|
||||
"headers": "HTTP/1.1 308 Permanent Redirect\nConnection: close\nLocation: https://ci.165.227.90.215.sslip.io/login\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:31:37 GMT\nContent-Length: 0",
|
||||
"error": ""
|
||||
},
|
||||
{
|
||||
"url": "https://ci.165.227.90.215.sslip.io/login",
|
||||
"curl_exit": 0,
|
||||
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nCache-Control: no-cache,no-store,must-revalidate\nContent-Type: text/html;charset=utf-8\nDate: Wed, 21 Oct 2026 23:31:38 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nServer: Jetty(12.0.25)\nVary: Accept-Encoding\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: sameorigin\nX-Hudson: 1.395\nX-Jenkins: 2.528.1\nX-Jenkins-Session: 17d6caca\nTransfer-Encoding: chunked",
|
||||
"error": ""
|
||||
},
|
||||
{
|
||||
"url": "https://git.sespinal590.dev/",
|
||||
"curl_exit": 0,
|
||||
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nCache-Control: max-age=0, private, must-revalidate\nContent-Type: text/html; charset=utf-8\nDate: Wed, 21 Oct 2026 23:31:39 GMT\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\nTransfer-Encoding: chunked",
|
||||
"error": ""
|
||||
}
|
||||
],
|
||||
"ipv6_records": [],
|
||||
"tls_validation": "curl uses the Windows Schannel trust store with verification enabled. The separate Python/OpenSSL attempt reported an expired-chain error; retained as a client trust-store discrepancy, not bypassed."
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
Branch indexing
|
||||
Looking up repository group10-startup/startup-product
|
||||
Querying the current revision of pull request #9...
|
||||
Current revision of pull request #9 is ed8684a2897c407946320183e572f6412dbb7703
|
||||
Obtained Jenkinsfile from ed8684a2897c407946320183e572f6412dbb7703
|
||||
[Pipeline] Start of Pipeline
|
||||
[Pipeline] node
|
||||
Running on Jenkins in /var/jenkins_home/workspace/startup-product-ci_PR-9
|
||||
[Pipeline] {
|
||||
[Pipeline] timeout
|
||||
Timeout set to expire in 5 min 0 sec
|
||||
[Pipeline] {
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Checkout)
|
||||
[Pipeline] checkout
|
||||
The recommended git tool is: NONE
|
||||
using credential gitea-startup-ci
|
||||
> git rev-parse --resolve-git-dir /var/jenkins_home/workspace/startup-product-ci_PR-9/.git # timeout=10
|
||||
Fetching changes from the remote Git repository
|
||||
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
|
||||
Fetching without tags
|
||||
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
|
||||
> git --version # timeout=10
|
||||
> git --version # 'git version 2.47.3'
|
||||
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
|
||||
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
|
||||
Checking out Revision ed8684a2897c407946320183e572f6412dbb7703 (codex/chapter4-issue-8)
|
||||
> git config core.sparsecheckout # timeout=10
|
||||
> git checkout -f ed8684a2897c407946320183e572f6412dbb7703 # timeout=10
|
||||
Commit message: "Fix pricing multiplication and document clean CI run for issue #8"
|
||||
> git rev-list --no-walk 35605c33b903742cd13d444a1a14d61b07fbaa86 # timeout=10
|
||||
[Gitea] Notifying pull request build status: PENDING Build started...
|
||||
[Gitea] Notified
|
||||
[Pipeline] sh
|
||||
+ git rev-parse HEAD
|
||||
ed8684a2897c407946320183e572f6412dbb7703
|
||||
+ python3 --version
|
||||
Python 3.13.5
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Syntax check)
|
||||
[Pipeline] sh
|
||||
+ python3 -m py_compile pricing.py tests/test_pricing.py
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] stage
|
||||
[Pipeline] { (Unit tests)
|
||||
[Pipeline] sh
|
||||
+ python3 -m unittest discover -s tests -v
|
||||
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
|
||||
test_single_item (test_pricing.PricingTests.test_single_item) ... ok
|
||||
test_total (test_pricing.PricingTests.test_total) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 3 tests in 0.000s
|
||||
|
||||
OK
|
||||
[Pipeline] }
|
||||
[Pipeline] // stage
|
||||
[Pipeline] }
|
||||
[Pipeline] // timeout
|
||||
[Pipeline] }
|
||||
[Pipeline] // node
|
||||
[Pipeline] End of Pipeline
|
||||
[Gitea] Notifying pull request build status: SUCCESS This commit looks good
|
||||
[Gitea] Notified
|
||||
Finished: SUCCESS
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
@@ -0,0 +1 @@
|
||||
{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","actions":[{"_class":"hudson.model.CauseAction","causes":[{"_class":"jenkins.branch.BranchIndexingCause","shortDescription":"Branch indexing"}]},{"_class":"jenkins.scm.api.SCMRevisionAction"},{"_class":"org.jenkinsci.plugins.workflow.libs.LibrariesAction"},{},{},{"_class":"hudson.plugins.git.util.BuildData","lastBuiltRevision":{"SHA1":"ed8684a2897c407946320183e572f6412dbb7703"}},{},{},{"_class":"org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"},{"_class":"org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction"},{},{"_class":"org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"},{},{}],"building":false,"duration":16028,"number":2,"result":"SUCCESS","timestamp":1792624339880,"url":"https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"}
|
||||
@@ -0,0 +1 @@
|
||||
{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/wfapi/describe"},"changesets":{"href":"/job/startup-product-ci/job/PR-9/2/wfapi/changesets"}},"id":"2","name":"#2","status":"SUCCESS","startTimeMillis":1792624339917,"endTimeMillis":1792624355945,"durationMillis":16028,"queueDurationMillis":37,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/8/wfapi/describe"}},"id":"8","name":"Checkout","execNode":"","status":"SUCCESS","startTimeMillis":1792624349444,"durationMillis":3673,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/14/wfapi/describe"}},"id":"14","name":"Syntax check","execNode":"","status":"SUCCESS","startTimeMillis":1792624353234,"durationMillis":636,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/19/wfapi/describe"}},"id":"19","name":"Unit tests","execNode":"","status":"SUCCESS","startTimeMillis":1792624353998,"durationMillis":948,"pauseDurationMillis":0}]}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"state": "success",
|
||||
"sha": "ed8684a2897c407946320183e572f6412dbb7703",
|
||||
"total_count": 1,
|
||||
"statuses": [
|
||||
{
|
||||
"id": 3,
|
||||
"status": "success",
|
||||
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/display/redirect",
|
||||
"description": "This commit looks good",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/statuses/ed8684a2897c407946320183e572f6412dbb7703",
|
||||
"context": "startup-product-ci/pipeline/pr-main",
|
||||
"creator": {
|
||||
"id": 13,
|
||||
"login": "jenkins-ci",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "13+jenkins-ci@noreply.git.sespinal590.dev",
|
||||
"avatar_url": "https://git.sespinal590.dev/avatars/c6625ee715debdbdf5ddfde2ed4f987c",
|
||||
"html_url": "https://git.sespinal590.dev/jenkins-ci",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-10-21T23:05:31Z",
|
||||
"restricted": true,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "jenkins-ci"
|
||||
},
|
||||
"created_at": "2026-10-21T23:12:36Z",
|
||||
"updated_at": "2026-10-21T23:12:36Z"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"id": 1,
|
||||
"owner": {
|
||||
"id": 2,
|
||||
"login": "group10-startup",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "Group 10 Startup",
|
||||
"email": "",
|
||||
"avatar_url": "https://git.sespinal590.dev/avatars/f1149afff214b4ad4a008d22b56ca09a",
|
||||
"html_url": "https://git.sespinal590.dev/group10-startup",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-09-28T23:59:09Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "SSW 590 startup organization for the Gitea foundation assignment.",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "group10-startup"
|
||||
},
|
||||
"name": "startup-product",
|
||||
"full_name": "group10-startup/startup-product",
|
||||
"description": "Product repository for the SSW 590 startup workflow demonstration.",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 35,
|
||||
"language": "",
|
||||
"languages_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/languages",
|
||||
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product",
|
||||
"link": "",
|
||||
"ssh_url": "git@git.sespinal590.dev:group10-startup/startup-product.git",
|
||||
"clone_url": "https://git.sespinal590.dev/group10-startup/startup-product.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 4,
|
||||
"open_issues_count": 4,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-28T23:59:09Z",
|
||||
"updated_at": "2026-10-21T23:11:41Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": []
|
||||
},
|
||||
"commit_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/ed8684a2897c407946320183e572f6412dbb7703",
|
||||
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/ed8684a2897c407946320183e572f6412dbb7703/status"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
\textbf{Restart persistence passed.} On October 21, 2026, 23:17:18--23:18:07 UTC, the idle Jenkins container was restarted. The multibranch configuration SHA-256 stayed identical (\texttt{c34e6ff6} prefix); the configured job and PR-9 run~2 remained present with result SUCCESS. The HTTPS base URL, single controller executor, periodic scan and zero failed plugins were rechecked afterward. The full before/after record is retained in \nolinkurl{evidence/chapter4/persistence.json}. This was a restart test, not a backup/restore or container-recreation test.
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"started_at": "2026-10-21T23:17:18.699535+00:00",
|
||||
"before": {
|
||||
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
||||
"number": 2,
|
||||
"result": "SUCCESS",
|
||||
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"
|
||||
},
|
||||
"job_config_sha256_before": "c34e6ff6ca692bd3d5aae08029ed817d302747c9f78d2a9f685b3f98311d1a75",
|
||||
"after": {
|
||||
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
||||
"number": 2,
|
||||
"result": "SUCCESS",
|
||||
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"
|
||||
},
|
||||
"job_config_sha256_after": "c34e6ff6ca692bd3d5aae08029ed817d302747c9f78d2a9f685b3f98311d1a75",
|
||||
"completed_at": "2026-10-21T23:18:07.239671+00:00",
|
||||
"passed": true,
|
||||
"scope": "Container restart persistence; not a backup/restore test or container-recreation test.",
|
||||
"settings": "executors=1\nurl=https://ci.165.227.90.215.sslip.io/\nfailedPlugins=[]\npolling=[com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger$DescriptorImpl@7064187:com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger@59146576[* * * * *]]\n"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Update-center refresh: [[default, OK: <div/>]]
|
||||
Installed plugins with available updates: [{"name":"asm-api","installed":"9.10.1-216.va_9256d3b_844b_","available":"9.11.1-226.vff833a_e4c58e"},{"name":"bouncycastle-api","installed":"2.30.1.82-277.v70ca_0b_877184","available":"2.30.1.86.2-310.v4655f6742752"},{"name":"caffeine-api","installed":"3.2.3-194.v31a_b_f7a_b_5a_81","available":"3.3.1-214.v18eb_56b_34920"},{"name":"command-launcher","installed":"123.v37cfdc92ef67","available":"141.v9578cf36b_311"},{"name":"eddsa-api","installed":"0.3.0.1-19.vc432d923e5ee","available":"0.3.0.1-29.v67e9a_1c969b_b_"},{"name":"git","installed":"5.10.1","available":"5.11.0"},{"name":"gson-api","installed":"2.13.2-173.va_a_092315913c","available":"2.14.0-201.v8eefe5515533"},{"name":"jaxb","installed":"2.3.9-133.vb_ec76a_73f706","available":"2.3.9-143.v5979df3304e6"},{"name":"mina-sshd-api-common","installed":"2.16.0-167.va_269f38cc024","available":"2.19.0-192.v2b_a_7b_2c1dc71"},{"name":"mina-sshd-api-core","installed":"2.16.0-167.va_269f38cc024","available":"2.19.0-192.v2b_a_7b_2c1dc71"},{"name":"script-security","installed":"1399.ve6a_66547f6e1","available":"1436.v1082791135e4"},{"name":"sshd","installed":"3.374.v19b_d59ce6610","available":"3.384.vc89b_5e138cf9"},{"name":"trilead-api","installed":"2.209.v0e69b_c43c245","available":"2.284.v1974ea_324382"},{"name":"workflow-job","installed":"1571.1580.v18e46842c125","available":"1571.1585.v21fce07cd04d"}]
|
||||
Core: 2.528.1
|
||||
|
||||
@@ -0,0 +1,468 @@
|
||||
{
|
||||
"repository": "group10-startup/startup-product",
|
||||
"bot": "jenkins-ci",
|
||||
"issue": 8,
|
||||
"branch": "codex/chapter4-issue-8",
|
||||
"failed_commit": "35605c33b903742cd13d444a1a14d61b07fbaa86",
|
||||
"pr": 9,
|
||||
"pr_url": "https://git.sespinal590.dev/group10-startup/startup-product/pulls/9",
|
||||
"context": "startup-product-ci/pipeline/pr-main",
|
||||
"repair_commit": "ed8684a2897c407946320183e572f6412dbb7703",
|
||||
"repair_pushed_at": "2026-10-21T23:11:38.223025+00:00",
|
||||
"collected_at": "2026-10-21T23:13:47.679498+00:00",
|
||||
"merged": false,
|
||||
"head": "ed8684a2897c407946320183e572f6412dbb7703",
|
||||
"reviews": [],
|
||||
"plugins": [
|
||||
{
|
||||
"shortName": "apache-httpcomponents-client-4-api",
|
||||
"version": "4.5.14-269.vfa_2321039a_83",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "asm-api",
|
||||
"version": "9.10.1-216.va_9256d3b_844b_",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "authentication-tokens",
|
||||
"version": "1.144.v5ff4a_5ec5c33",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "bouncycastle-api",
|
||||
"version": "2.30.1.82-277.v70ca_0b_877184",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "branch-api",
|
||||
"version": "2.1303.v9f3b_95dc329d",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "caffeine-api",
|
||||
"version": "3.2.3-194.v31a_b_f7a_b_5a_81",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "checks-api",
|
||||
"version": "422.vc7e8b_51488c6",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "cloudbees-folder",
|
||||
"version": "6.1106.v3a_d9a_6d2465e",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "command-launcher",
|
||||
"version": "123.v37cfdc92ef67",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "commons-lang3-api",
|
||||
"version": "3.21.0-122.v6a_ea_4fd34049",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "commons-text-api",
|
||||
"version": "1.15.0-218.va_61573470393",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "credentials-binding",
|
||||
"version": "728.v902a_273b_8947",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "credentials",
|
||||
"version": "1487.va_d001ede2c31",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "display-url-api",
|
||||
"version": "2.217.va_6b_de84cc74b_",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "durable-task",
|
||||
"version": "686.v80ff80875b_82",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "eddsa-api",
|
||||
"version": "0.3.0.1-19.vc432d923e5ee",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "git-client",
|
||||
"version": "6.6.1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "git",
|
||||
"version": "5.10.1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "gitea-checks",
|
||||
"version": "604.638.ve9e5472551b_3",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "gitea",
|
||||
"version": "273.vb_78d13f6d9a_d",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "gson-api",
|
||||
"version": "2.13.2-173.va_a_092315913c",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "handy-uri-templates-2-api",
|
||||
"version": "2.1.8-38.vcea_5d521d5f3",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "instance-identity",
|
||||
"version": "203.v15e81a_1b_7a_38",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "ionicons-api",
|
||||
"version": "94.vcc3065403257",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jackson-annotations2-api",
|
||||
"version": "2.22-19.v10a_a_582ea_26e",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jackson2-api",
|
||||
"version": "2.21.2-436.v29efdb_7418ff",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jakarta-activation-api",
|
||||
"version": "2.1.4-1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jakarta-mail-api",
|
||||
"version": "2.1.5-1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jakarta-xml-bind-api",
|
||||
"version": "4.0.9-19.v2b_a_5b_44d9a_1c",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "javax-activation-api",
|
||||
"version": "1.2.0-8",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "javax-mail-api",
|
||||
"version": "1.6.2-11",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jaxb",
|
||||
"version": "2.3.9-133.vb_ec76a_73f706",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "jdk-tool",
|
||||
"version": "83.v417146707a_3d",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "joda-time-api",
|
||||
"version": "2.15.0-208.v6b_084e7a_d9f0",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "json-api",
|
||||
"version": "20260814-226.v20f9685d642c",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "mailer",
|
||||
"version": "534.v1b_36f5864073",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "mina-sshd-api-common",
|
||||
"version": "2.16.0-167.va_269f38cc024",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "mina-sshd-api-core",
|
||||
"version": "2.16.0-167.va_269f38cc024",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-build-step",
|
||||
"version": "601.v6d4c6d1a_9dc7",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-graph-analysis",
|
||||
"version": "254.v0f63a_a_447dca_",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-groovy-lib",
|
||||
"version": "798.v5cc688825312",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-input-step",
|
||||
"version": "560.v56198a_642157",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-milestone-step",
|
||||
"version": "152.v6e22b_8cfc66c",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-model-api",
|
||||
"version": "2.2293.v6e7193cec599",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-model-definition",
|
||||
"version": "2.2293.v6e7193cec599",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-model-extensions",
|
||||
"version": "2.2293.v6e7193cec599",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-rest-api",
|
||||
"version": "2.41",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-stage-step",
|
||||
"version": "345.va_96187909426",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-stage-tags-metadata",
|
||||
"version": "2.2293.v6e7193cec599",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "pipeline-stage-view",
|
||||
"version": "2.41",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "plain-credentials",
|
||||
"version": "199.v9f8e1f741799",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "plugin-util-api",
|
||||
"version": "6.1192.v30fe6e2837ff",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "scm-api",
|
||||
"version": "728.vc30dcf7a_0df5",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "script-security",
|
||||
"version": "1399.ve6a_66547f6e1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "snakeyaml-api",
|
||||
"version": "2.7-152.vc672728cf536",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "ssh-credentials",
|
||||
"version": "372.va_250881b_08cd",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "sshd",
|
||||
"version": "3.374.v19b_d59ce6610",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "structs",
|
||||
"version": "362.va_b_695ef4fdf9",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "trilead-api",
|
||||
"version": "2.209.v0e69b_c43c245",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "variant",
|
||||
"version": "70.va_d9f17f859e0",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "woodstox-core-api",
|
||||
"version": "7.3.0-16.v017f30ed004c",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-aggregator",
|
||||
"version": "608.v67378e9d3db_1",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-api",
|
||||
"version": "1384.vdc05a_48f535f",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-basic-steps",
|
||||
"version": "1098.v808b_fd7f8cf4",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-cps",
|
||||
"version": "4350.vcc65d4958821",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-durable-task-step",
|
||||
"version": "1479.v56e587f413a_7",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-job",
|
||||
"version": "1571.1580.v18e46842c125",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-multibranch",
|
||||
"version": "841.vec5b_9e1806ec",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-scm-step",
|
||||
"version": "487.v41313a_96b_65d",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-step-api",
|
||||
"version": "724.v538c2362b_dfb_",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"shortName": "workflow-support",
|
||||
"version": "1015.v785e5a_b_b_8b_22",
|
||||
"active": true,
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"runtime": "Python 3.13.5\ngit version 2.47.3",
|
||||
"containers": "jenkins | jenkins/jenkins:2.528.1-lts-jdk21 | Up 11 minutes | 8080/tcp, 50000/tcp\ncaddy | caddy:2.10.2 | Up 3 weeks | 0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp, 443/udp, 2019/tcp\ngitea | gitea/gitea:1.27.3 | Up 2 weeks | 22/tcp, 3000/tcp",
|
||||
"capacity": "total used free shared buff/cache available\nMem: 458 321 11 3 149 137\nSwap: 1023 544 479\nFilesystem Size Used Avail Use% Mounted on\n/dev/vda1 8.7G 5.4G 3.4G 62% /",
|
||||
"ufw": "Status: inactive",
|
||||
"ipv6": "No global IPv6 addresses.",
|
||||
"certificates": {
|
||||
"git.sespinal590.dev.crt": "issuer=C = US, O = Let's Encrypt, CN = YE1\nsubject=CN = git.sespinal590.dev\nnotBefore=Sep 28 23:44:00 2026 GMT\nnotAfter=Dec 27 23:43:59 2026 GMT",
|
||||
"ci.165.227.90.215.sslip.io.crt": "issuer=C = US, O = Let's Encrypt, CN = YE1\nsubject=CN = ci.165.227.90.215.sslip.io\nnotBefore=Oct 7 04:04:29 2026 GMT\nnotAfter=Jan 5 04:04:28 2027 GMT"
|
||||
},
|
||||
"jenkins_security": "Security realm: hudson.security.HudsonPrivateSecurityRealm\nSelf signup disabled: true\nAuthorization: hudson.security.FullControlOnceLoggedInAuthorizationStrategy\nAnonymous read allowed: false\nExecutors: 1; labels: controller-small-trusted\nFailed plugins: []\nDocker socket mounted: false\nPolling: [com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger$DescriptorImpl@747c7415:com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger@4603f629[* * * * *]]\n",
|
||||
"jenkins_users": [
|
||||
{
|
||||
"id": "admin",
|
||||
"fullName": "admin"
|
||||
},
|
||||
{
|
||||
"id": "sespinal",
|
||||
"fullName": "sespinal"
|
||||
},
|
||||
{
|
||||
"id": "sespinal-admin",
|
||||
"fullName": "sespinal-admin"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Tunnel HTTPS login: 200; certificate verification enabled
|
||||
+8
-1
@@ -3,7 +3,14 @@ git.sespinal590.dev {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
# Current team source explicitly approved on 2026-10-21; review when networks change.
|
||||
ci.165.227.90.215.sslip.io {
|
||||
encode zstd gzip
|
||||
reverse_proxy jenkins:8080
|
||||
@approved remote_ip 155.246.151.38/32 172.18.0.1/32
|
||||
handle @approved {
|
||||
reverse_proxy jenkins:8080
|
||||
}
|
||||
handle {
|
||||
respond "Jenkins access requires an approved team source or administrator tunnel." 403
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# Current team source explicitly approved on 2026-10-21; review when networks change.
|
||||
ci.165.227.90.215.sslip.io {
|
||||
encode zstd gzip
|
||||
reverse_proxy jenkins:8080
|
||||
@approved remote_ip 155.246.151.38/32 172.18.0.1/32
|
||||
handle @approved {
|
||||
reverse_proxy jenkins:8080
|
||||
}
|
||||
handle {
|
||||
respond "Jenkins access requires an approved team source or administrator tunnel." 403
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+12
-16
@@ -1,30 +1,26 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
agent { label 'controller-small-trusted' }
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
disableConcurrentBuilds()
|
||||
timeout(time: 5, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '20'))
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'git rev-parse HEAD && python3 --version'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Lint') {
|
||||
stage('Syntax check') {
|
||||
steps {
|
||||
sh '''
|
||||
set -eu
|
||||
test -f README.md
|
||||
grep -qi "startup" README.md
|
||||
'''
|
||||
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Automated Test') {
|
||||
stage('Unit tests') {
|
||||
steps {
|
||||
sh '''
|
||||
set -eu
|
||||
printf "CI smoke test for startup-product\\n"
|
||||
find . -maxdepth 2 -type f | sort | head -20
|
||||
'''
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Run on the Droplet after creating/recreating the official Jenkins container.
|
||||
docker exec --user root jenkins sh -c 'apt-get update -qq && apt-get install -y --no-install-recommends python3 && rm -rf /var/lib/apt/lists/*'
|
||||
docker exec jenkins python3 --version
|
||||
docker exec jenkins git --version
|
||||
@@ -0,0 +1,20 @@
|
||||
\resizebox{\linewidth}{!}{%
|
||||
\begin{tikzpicture}[font=\small,box/.style={draw,rounded corners,align=center,text width=2.8cm,minimum height=1.3cm},arr/.style={-{Latex[length=2mm]},thick}]
|
||||
\node[box,text width=2.3cm] (browser) at (0,0) {\guillemotleft device\guillemotright\\Team browser};
|
||||
\node[box,text width=2.6cm] (fw) at (3.8,0) {Cloud Firewall\\TCP 443\\HTTP 80 for redirect};
|
||||
\node[box] (proxy) at (10.8,0) {\guillemotleft container\guillemotright\\Caddy TLS proxy};
|
||||
\node[box,text width=3.0cm] (jenkins) at (8.0,-3.8) {\guillemotleft container\guillemotright\\Jenkins controller\\checkout and tests};
|
||||
\node[box] (gitea) at (13.5,-3.8) {\guillemotleft container\guillemotright\\Gitea :3000};
|
||||
\node[box] (jh) at (8.0,-6.5) {Jenkins home\\host bind mount};
|
||||
\node[box] (gd) at (13.5,-6.5) {Gitea data\\SQLite + repositories};
|
||||
\draw[dashed] (6.0,1.2) rectangle (15.5,-7.5);
|
||||
\node[align=center] at (10.75,1.6) {\guillemotleft device\guillemotright\ DigitalOcean Droplet 165.227.90.215};
|
||||
\draw[arr] (browser)--(fw);
|
||||
\draw[arr] (fw)--node[above]{HTTPS}(proxy);
|
||||
\draw[arr] (proxy)--node[left=2mm,align=right]{private\\:8080}(jenkins);
|
||||
\draw[arr] (proxy)--node[right=2mm,align=left]{private\\:3000}(gitea);
|
||||
\draw[arr] ([yshift=3mm]jenkins.east)--node[above,align=center,font=\footnotesize]{poll / checkout\\commit status}([yshift=3mm]gitea.west);
|
||||
\draw[arr] ([yshift=-3mm]gitea.west)--node[below,align=center,font=\footnotesize]{API / Git\\responses}([yshift=-3mm]jenkins.east);
|
||||
\draw[arr] (jenkins)--(jh);
|
||||
\draw[arr] (gitea)--(gd);
|
||||
\end{tikzpicture}}
|
||||
@@ -0,0 +1,71 @@
|
||||
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
|
||||
asm-api:9.10.1-216.va_9256d3b_844b_
|
||||
authentication-tokens:1.144.v5ff4a_5ec5c33
|
||||
bouncycastle-api:2.30.1.82-277.v70ca_0b_877184
|
||||
branch-api:2.1303.v9f3b_95dc329d
|
||||
caffeine-api:3.2.3-194.v31a_b_f7a_b_5a_81
|
||||
checks-api:422.vc7e8b_51488c6
|
||||
cloudbees-folder:6.1106.v3a_d9a_6d2465e
|
||||
command-launcher:123.v37cfdc92ef67
|
||||
commons-lang3-api:3.21.0-122.v6a_ea_4fd34049
|
||||
commons-text-api:1.15.0-218.va_61573470393
|
||||
credentials:1487.va_d001ede2c31
|
||||
credentials-binding:728.v902a_273b_8947
|
||||
display-url-api:2.217.va_6b_de84cc74b_
|
||||
durable-task:686.v80ff80875b_82
|
||||
eddsa-api:0.3.0.1-19.vc432d923e5ee
|
||||
git:5.10.1
|
||||
git-client:6.6.1
|
||||
gitea:273.vb_78d13f6d9a_d
|
||||
gitea-checks:604.638.ve9e5472551b_3
|
||||
gson-api:2.13.2-173.va_a_092315913c
|
||||
handy-uri-templates-2-api:2.1.8-38.vcea_5d521d5f3
|
||||
instance-identity:203.v15e81a_1b_7a_38
|
||||
ionicons-api:94.vcc3065403257
|
||||
jackson-annotations2-api:2.22-19.v10a_a_582ea_26e
|
||||
jackson2-api:2.21.2-436.v29efdb_7418ff
|
||||
jakarta-activation-api:2.1.4-1
|
||||
jakarta-mail-api:2.1.5-1
|
||||
jakarta-xml-bind-api:4.0.9-19.v2b_a_5b_44d9a_1c
|
||||
javax-activation-api:1.2.0-8
|
||||
javax-mail-api:1.6.2-11
|
||||
jaxb:2.3.9-133.vb_ec76a_73f706
|
||||
jdk-tool:83.v417146707a_3d
|
||||
joda-time-api:2.15.0-208.v6b_084e7a_d9f0
|
||||
json-api:20260814-226.v20f9685d642c
|
||||
mailer:534.v1b_36f5864073
|
||||
mina-sshd-api-common:2.16.0-167.va_269f38cc024
|
||||
mina-sshd-api-core:2.16.0-167.va_269f38cc024
|
||||
pipeline-build-step:601.v6d4c6d1a_9dc7
|
||||
pipeline-graph-analysis:254.v0f63a_a_447dca_
|
||||
pipeline-groovy-lib:798.v5cc688825312
|
||||
pipeline-input-step:560.v56198a_642157
|
||||
pipeline-milestone-step:152.v6e22b_8cfc66c
|
||||
pipeline-model-api:2.2293.v6e7193cec599
|
||||
pipeline-model-definition:2.2293.v6e7193cec599
|
||||
pipeline-model-extensions:2.2293.v6e7193cec599
|
||||
pipeline-rest-api:2.41
|
||||
pipeline-stage-step:345.va_96187909426
|
||||
pipeline-stage-tags-metadata:2.2293.v6e7193cec599
|
||||
pipeline-stage-view:2.41
|
||||
plain-credentials:199.v9f8e1f741799
|
||||
plugin-util-api:6.1192.v30fe6e2837ff
|
||||
scm-api:728.vc30dcf7a_0df5
|
||||
script-security:1399.ve6a_66547f6e1
|
||||
snakeyaml-api:2.7-152.vc672728cf536
|
||||
ssh-credentials:372.va_250881b_08cd
|
||||
sshd:3.374.v19b_d59ce6610
|
||||
structs:362.va_b_695ef4fdf9
|
||||
trilead-api:2.209.v0e69b_c43c245
|
||||
variant:70.va_d9f17f859e0
|
||||
woodstox-core-api:7.3.0-16.v017f30ed004c
|
||||
workflow-aggregator:608.v67378e9d3db_1
|
||||
workflow-api:1384.vdc05a_48f535f
|
||||
workflow-basic-steps:1098.v808b_fd7f8cf4
|
||||
workflow-cps:4350.vcc65d4958821
|
||||
workflow-durable-task-step:1479.v56e587f413a_7
|
||||
workflow-job:1571.1580.v18e46842c125
|
||||
workflow-multibranch:841.vec5b_9e1806ec
|
||||
workflow-scm-step:487.v41313a_96b_65d
|
||||
workflow-step-api:724.v538c2362b_dfb_
|
||||
workflow-support:1015.v785e5a_b_b_8b_22
|
||||
@@ -0,0 +1,21 @@
|
||||
# Chapter 4 Jenkins configuration
|
||||
|
||||
Use official `jenkins/jenkins:2.528.1-lts-jdk21`, the existing private `gitea_default` Docker network, persistent `/opt/jenkins/home`, and no published Jenkins/agent ports. Apply compose.yml from `/opt/jenkins`. Run bootstrap-executor.sh after container creation/recreation; installing Python inside a container survives restart but does not survive recreation. Python observed: 3.13.5; Git: 2.47.3. No pip dependencies or Docker socket are needed.
|
||||
|
||||
Retain the home directory and a rollback copy before plugin changes. plugins.txt records every loaded plugin/version after repair; it is a version inventory, not a claim that all are the newest available. Four previously incompatible dependencies were aligned: bouncycastle-api 2.30.1.82-277.v70ca_0b_877184, caffeine-api 3.2.3-194.v31a_b_f7a_b_5a_81, gson-api 2.13.2-173.va_a_092315913c, script-security 1399.ve6a_66547f6e1. Verify zero failed plugins after restart. Refresh the update center, review advisories/core compatibility, and schedule newer versions as a separate tested upgrade; never blindly replace the working plugin set.
|
||||
|
||||
In Manage Jenkins > System > Gitea Servers, register `http://gitea:3000`, with automatic webhook management off. Create a Multibranch Pipeline named `startup-product-ci`, Gitea source owner `group10-startup`, repository `startup-product`, and credential ID `gitea-startup-ci` (Gitea personal access token). The restricted, non-admin `jenkins-ci` bot has collaborator access only to startup-product and token scopes write:repository/read:user. Gitea requires repository write access for status publication. Keep the token in Jenkins credentials; do not put its value in a pipeline or this repository.
|
||||
|
||||
Discover branches excluding those with open PRs (strategy 1). Discover origin PR heads (strategy 2); do not discover fork PRs. Jenkinsfile path: Jenkinsfile. Configure Scan Multibranch Pipeline Triggers > Periodically if not otherwise run for 1 minute. This is the rubric-permitted polling fallback. No webhook delivery is claimed. An initial indexing failure `Unknown server: http://gitea:3000` was fixed by registering the endpoint globally. A subsequent corrective push was discovered automatically: PR-9 run 2, commit ed8684a2897c407946320183e572f6412dbb7703.
|
||||
|
||||
Set Jenkins URL to `https://ci.165.227.90.215.sslip.io/`, one controller executor, label `controller-small-trusted`; the small course-only trusted build runs here. Disable self-registration and anonymous read. Restrict pipeline changes to trusted team writers; do not add untrusted forks, privileged mounts, or build-secret bindings. Settings/jobs/build history persist under Jenkins home. A controller build remains a security tradeoff; use an isolated agent and zero controller executors before accepting untrusted contributions.
|
||||
|
||||
Protect `main`: required context `startup-product-ci/pipeline/pr-main`, one approval, dismiss stale approvals, block rejected reviews, direct pushes disabled, force pushes disabled, admin merge override disabled. The check must match the latest PR head. Issue 8 and PR 9 contain the controlled failure and repair. Peer approval and eventual merge must be performed and recorded honestly.
|
||||
|
||||
For a failed check, open the exact linked run, compare its checked-out SHA with the PR head, then inspect the first failed stage. For missing checks, verify periodic scan timestamp/result, registered Gitea URL, token permission, network connectivity, plugin activation, and context spelling. If switching to webhooks later, scope events/destination, inspect delivery status, and keep the Jenkins interface private. Never disable CSRF to repair scripted requests; retain the session cookie with its crumb or use an approved Jenkins API token.
|
||||
|
||||
Restart: `cd /opt/jenkins && docker compose restart jenkins`. Verify the login, job, run history, configured polling, and absence of failed plugins. For cleanup stop the Jenkins container and disable its scan; revoke the CI bot token when integration is retired. Do not delete persistent home or shared Gitea/Caddy data. No new paid cloud resource was provisioned for Chapter 4.
|
||||
|
||||
## Browser access, 2026-10-21
|
||||
|
||||
Sergio explicitly approved CI access only from 155.246.151.38/32 and Docker host gateway 172.18.0.1/32. The updated Caddyfile-snippet reflects the deployed matcher. Approved source GET returned 200; an excluded container using a validated TLS connection to private Caddy returned 403. Gitea is unaffected. Verify administrator access before every source restriction change. Instructor viewing can occur on an approved network with the operator, or through the documented administrator-assisted SSH tunnel; no instructor Jenkins sign-in is required. Current account-side Cloud Firewall rule inspection remains pending.
|
||||
Reference in New Issue
Block a user