Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions projects.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions projects/design-patterns-test-framework.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/enterprise.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/jenkins-kubernetes.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
kind cluster 'qa' namespace qa-<build>: Deployment (2 pods, probes) + Service + smoke Job
▲
Jenkins controller (Docker) JCasC + Job DSL, uses the host's Docker for images and the cluster</code></pre></section><section aria-labelledby="stack"><h2 id="stack">Technology and tools</h2><div class="table-wrap"><table><thead><tr><th scope="col">Area</th><th scope="col">Tools</th></tr></thead><tbody><tr><td>CI server</td><td>Jenkins 2.580 LTS in Docker: Configuration as Code, Job DSL, Pipeline Graph View, JUnit, HTML Publisher, credentials binding</td></tr><tr><td>Kubernetes</td><td>kind 0.33 (Kubernetes in Docker), kubectl 1.37: Deployment with probes, Service, Job, a namespace per build</td></tr><tr><td>System under test</td><td>room-booking: Node.js 24 API, no dependencies, with node:test unit tests</td></tr><tr><td>Tests</td><td>pytest 9 + requests: smoke and regression suites, JUnit XML and pytest-html reports, Ruff</td></tr><tr><td>CI</td><td>GitHub Actions: checks, the Kubernetes path with the same scripts, and a real Jenkins that runs the Jenkinsfile</td></tr></tbody></table></div></section><section aria-labelledby="decisions"><h2 id="decisions">Engineering decisions and approach</h2><ul><li>Everything as code: plugins in the image, users, credentials and the job in JCasC and Job DSL, the pipeline in the Jenkinsfile</li><li>Scripts do the work and the Jenkinsfile orchestrates, so GitHub Actions runs the same deployment and tests without Jenkins</li><li>A namespace per build on a reused cluster: isolated runs, one-command cleanup, about 30 seconds per build</li><li>Two deployment checks: a Kubernetes Job inside the cluster through the Service name, and API tests from outside through port-forward</li><li>The deployment reports its build number, and a smoke test asserts it, so a stale pod or wrong image cannot pass</li><li>The quality gate also fails when too few tests ran; each stage records its results once (an early version counted every test twice)</li></ul></section><section aria-labelledby="scope"><h2 id="scope">Test scope and execution approach</h2><span id="contribution" class="legacy-anchor" aria-hidden="true"></span><span id="features" class="legacy-anchor" aria-hidden="true"></span><p>Project-specific checks and execution details documented in the repository:</p><ul><li>Parallel unit tests and lint, then image build, kind cluster and image load, deploy with rollout wait, in-cluster smoke Job, parallel API smoke and regression</li><li>Parameters for the test scope and keeping the deployment; timeouts, timestamps, no concurrent builds, log rotation</li><li>JUnit results with trend, published HTML reports, archived artifacts, a masked credential in the notification step</li><li>A deliberately broken rule failed the build at the first stage, before anything was built or deployed</li><li>CI starts the Jenkins image, triggers the job through the REST API and fails unless the Jenkins build ends with SUCCESS</li><li>Design notes and 76 interview questions on Jenkins, pipelines, Docker and Kubernetes, linked to the code (Markdown + PDF)</li></ul></section><section aria-labelledby="results"><h2 id="results">Results with dated evidence</h2><div class="evidence-box"><p><b>Historical repository or workflow evidence · older evidence; recheck the linked source</b></p><p>CI workflow and README evidence</p><p>Jenkins configured entirely as code builds a service, deploys it to a kind Kubernetes cluster and runs 21 tests against it in about 30 seconds; GitHub Actions starts a real Jenkins on every push and requires the pipeline to pass.</p><p>Evidence checked: <time datetime="2026-10-16">16 Oct 2026</time> | <a href="https://github.com/niranjankagri/jenkins-kubernetes-pipeline/actions/workflows/ci.yml" target="_blank" rel="noopener">Open dated evidence</a></p></div></section><section aria-labelledby="evidence"><h2 id="evidence">Evidence explorer</h2><span id="defects" class="legacy-anchor" aria-hidden="true"></span><div class="evidence-explorer" data-evidence-tabs><p>Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.</p><div class="evidence-tablist" role="tablist" aria-label="Project evidence"><button type="button" role="tab" id="evidence-tab-jenkins-kubernetes-report" aria-controls="evidence-panel-jenkins-kubernetes-report" aria-selected="true" tabindex="0" hidden>Test report</button><button type="button" role="tab" id="evidence-tab-jenkins-kubernetes-ci" aria-controls="evidence-panel-jenkins-kubernetes-ci" aria-selected="false" tabindex="-1" hidden>CI evidence</button></div><div class="evidence-panel" role="tabpanel" id="evidence-panel-jenkins-kubernetes-report" aria-labelledby="evidence-tab-jenkins-kubernetes-report" tabindex="0"><figure><span id="image-61c2c86c3400" class="legacy-anchor" aria-hidden="true"></span><button class="figure-trigger" type="button" data-image-dialog="image-a6b8b093f405" aria-haspopup="dialog" aria-label="Open ci workflow screenshot: Jenkins stage graph of a successful build"><img src="https://raw.githubusercontent.com/niranjankagri/jenkins-kubernetes-pipeline/main/docs/images/jenkins-stages.png" alt="Jenkins stage graph of a successful build" loading="lazy" width="960" height="600"><span class="sr-only">Open image viewer</span></button><figcaption><b>CI workflow screenshot.</b> A successful build in Jenkins' stage graph: every stage of the pipeline in 31 seconds. <span class="capture-note">Static image; capture date is not recorded in the portfolio data.</span></figcaption></figure><dialog class="image-viewer" id="image-a6b8b093f405" aria-labelledby="image-a6b8b093f405-caption"><form method="dialog"><button type="button" data-dialog-close aria-label="Close image viewer">Close</button></form><img src="https://raw.githubusercontent.com/niranjankagri/jenkins-kubernetes-pipeline/main/docs/images/jenkins-stages.png" alt="Jenkins stage graph of a successful build" width="960" height="600"><p class="viewer-caption" id="image-a6b8b093f405-caption"><b>CI workflow screenshot.</b> A successful build in Jenkins' stage graph: every stage of the pipeline in 31 seconds. Static image; capture date is not recorded in the portfolio data.</p></dialog><figure><span id="image-161659b04a32" class="legacy-anchor" aria-hidden="true"></span><button class="figure-trigger" type="button" data-image-dialog="image-44774de18029" aria-haspopup="dialog" aria-label="Open test report screenshot: Jenkins job page with the test result trend"><img src="https://raw.githubusercontent.com/niranjankagri/jenkins-kubernetes-pipeline/main/docs/images/jenkins-job.png" alt="Jenkins job page with the test result trend" loading="lazy" width="960" height="600"><span class="sr-only">Open image viewer</span></button><figcaption><b>Test report screenshot.</b> The job page with the test trend; the drop from 42 to 21 is the fix that stopped tests from being counted twice. <span class="capture-note">Static image; capture date is not recorded in the portfolio data.</span></figcaption></figure><dialog class="image-viewer" id="image-44774de18029" aria-labelledby="image-44774de18029-caption"><form method="dialog"><button type="button" data-dialog-close aria-label="Close image viewer">Close</button></form><img src="https://raw.githubusercontent.com/niranjankagri/jenkins-kubernetes-pipeline/main/docs/images/jenkins-job.png" alt="Jenkins job page with the test result trend" width="960" height="600"><p class="viewer-caption" id="image-44774de18029-caption"><b>Test report screenshot.</b> The job page with the test trend; the drop from 42 to 21 is the fix that stopped tests from being counted twice. Static image; capture date is not recorded in the portfolio data.</p></dialog><p class="capture-note">Static material from the public repository. The linked verification record was checked 2026-10-16; that date is not a screenshot capture date.</p></div><div class="evidence-panel" role="tabpanel" id="evidence-panel-jenkins-kubernetes-ci" aria-labelledby="evidence-tab-jenkins-kubernetes-ci" tabindex="0"><div class="evidence-box"><p><b>Dated workflow record</b></p><p>Evidence checked 2026-10-16. <a href="https://github.com/niranjankagri/jenkins-kubernetes-pipeline/actions/workflows/ci.yml" target="_blank" rel="noopener">Open CI workflow and README evidence</a></p></div></div></div></section><section aria-labelledby="run"><h2 id="run">Local setup and execution</h2><pre tabindex="0"><code>docker compose -f jenkins/docker-compose.yml up -d --build --wait # Jenkins on http://localhost:8088
scripts/run-jenkins-build.sh # start the job, wait, print the result</code></pre></section><section aria-labelledby="workflow"><h2 id="workflow">Workflow and reports</h2><span id="ci"></span><p><a href="https://github.com/niranjankagri/jenkins-kubernetes-pipeline/blob/main/.github/workflows/ci.yml" target="_blank" rel="noopener">View workflow definition</a>.</p></section><section aria-labelledby="limitations"><h2 id="limitations">Known limitations</h2><ul><li>Builds run on the controller and it uses the host&#x27;s Docker socket: fine for a local demo, not for a shared Jenkins</li><li>Images are loaded into kind instead of pushed to a registry; plugins are not pinned yet</li><li>The evidence is limited to the public repository and linked run; it does not establish customer production impact.</li></ul></section><section class="related-projects" aria-labelledby="related-title"><h2 id="related-title">Related projects</h2><p>Related by shared categories or technology tags.</p><ul><li><a href="pact-contract.html">Pact Contract Testing</a><p>Consumer-driven contracts with Pact V4: matchers and provider states with parameters on the consumer side, JUnit 5 verification of the real…</p></li><li><a href="pattern-shop-demo-app.html">Pattern Shop: a Shared Demo App for Test Frameworks</a><p>Sign-in, products, cart and checkout pages with a data-testid on every element a test needs, and the same catalog through REST/JSON, a…</p></li><li><a href="enterprise.html">Enterprise Test Automation Framework</a><p>One demo shop tested through browser, API, database and integration layers.</p></li></ul></section><nav class="case-neighbors" aria-label="Adjacent projects"><a class="neighbor previous" href="pact-contract.html"><span>Previous project</span><b>Pact Contract Testing</b></a><a class="neighbor next" href="ai-assisted-testing.html"><span>Next project</span><b>AI-Assisted Test Automation (Claude)</b></a></nav><p class="crumbs back"><a data-project-return href="../projects.html">Back to Projects</a></p></div></div>
scripts/run-jenkins-build.sh # start the job, wait, print the result</code></pre></section><section aria-labelledby="workflow"><h2 id="workflow">Workflow and reports</h2><span id="ci"></span><p><a href="https://github.com/niranjankagri/jenkins-kubernetes-pipeline/blob/main/.github/workflows/ci.yml" target="_blank" rel="noopener">View workflow definition</a>.</p></section><section aria-labelledby="limitations"><h2 id="limitations">Known limitations</h2><ul><li>Builds run on the controller and it uses the host&#x27;s Docker socket: fine for a local demo, not for a shared Jenkins</li><li>Images are loaded into kind instead of pushed to a registry; plugins are not pinned yet</li><li>The evidence is limited to the public repository and linked run; it does not establish customer production impact.</li></ul></section><section class="related-projects" aria-labelledby="related-title"><h2 id="related-title">Related projects</h2><p>Related by shared categories or technology tags.</p><ul><li><a href="pact-contract.html">Pact Contract Testing</a><p>Consumer-driven contracts with Pact V4: matchers and provider states with parameters on the consumer side, JUnit 5 verification of the real…</p></li><li><a href="pattern-shop-demo-app.html">Pattern Shop: a Shared Demo App for Test Frameworks</a><p>Sign-in, a sortable product list, product pages, cart and a two-step checkout, with a data-testid on every element a test needs, and the same…</p></li><li><a href="enterprise.html">Enterprise Test Automation Framework</a><p>One demo shop tested through browser, API, database and integration layers.</p></li></ul></section><nav class="case-neighbors" aria-label="Adjacent projects"><a class="neighbor previous" href="pact-contract.html"><span>Previous project</span><b>Pact Contract Testing</b></a><a class="neighbor next" href="ai-assisted-testing.html"><span>Next project</span><b>AI-Assisted Test Automation (Claude)</b></a></nav><p class="crumbs back"><a data-project-return href="../projects.html">Back to Projects</a></p></div></div>
</main>
<footer><div class="wrap footer-layout">
<div class="footer-brand"><a class="footer-name" href="../">Niranjan Kumar Agri</a><p>© 2026 · Quality engineering and automation</p></div>
Expand Down
Loading