Files
myfileagent-pipeline/ops/jenkins

Assignment 6 Python CI

The pipeline runs on the trusted Jenkins controller executor. Only trusted team members may change pipeline code. Do not supply secrets or privileged Docker access to untrusted pull requests. Fork PR discovery is disabled.

The controller uses the official Jenkins LTS image recorded in compose.jenkins.yaml. Python comes from that image's Debian package repositories; record the actual Python version from each build. No pip dependencies or Docker socket are needed. After replacing the container, run sh ops/jenkins/install-python.sh on the Droplet before building. A restart retains Python; replacement requires reinstall. Jenkins jobs and settings persist in the jenkins-home volume.

From the repository root, reproduce checks with:

python3 -m py_compile pricing.py tests/test_pricing.py
python3 -m unittest discover -s tests -v

Expected: both tests pass. Syntax or test failures must fail the Jenkins run. Multibranch origin PR discovery tests the current PR revision, not a merged revision. The printed checkout commit identifies what was actually tested.

Webhook delivery, status reporting, branch protection, and the controlled failure/repair demonstration must be configured and verified separately.