Document Assignment 6 Jenkins CI in the manual (refs #14)
Add the Continuous Integration with Jenkins chapter in the eight rubric sections: deployment and persistence (capacity test, memory-limit fix, restart test), HTTPS/access/firewall with IPv4 and IPv6 exposure checks, webhook traceability with an actual deployment diagram, pipeline stages, the required pr-main merge gate, PR #15's failure/repair/review/merge sequence, credentials and controller build boundary, and controls. Update the Hosts and Passwords tables (1 GiB resize, Jenkins and ci.yebilly.me, jenkins-bot account and token hints), the title page, abstract, Document History, glossary, and AI prompt log (including Vincent's prepared Oct 19-21 record). Note that Assignment 5's PR #13 merged. Also version pipeline-graph-view and its dependencies in the Jenkins plugin lockfile, and add Vincent's source-only ci/jenkins-capacity test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
// Disposable, locally supplied fixture; no SCM credentials or production checkout.
|
||||
node {
|
||||
stage('Dependencies') {
|
||||
sh 'python3 --version && git --version'
|
||||
}
|
||||
stage('Fresh fixture') {
|
||||
// Delete only this disposable job workspace, inside the test container.
|
||||
deleteDir()
|
||||
sh 'cp -R /opt/ssw590-input/fixtures/. .'
|
||||
if (params.BREAK_CALCULATION) {
|
||||
sh '''python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
p = Path('pricing.py')
|
||||
s = p.read_text()
|
||||
assert s.count('return unit_price * quantity') == 1
|
||||
p.write_text(s.replace('return unit_price * quantity', 'return unit_price + quantity'))
|
||||
PY'''
|
||||
}
|
||||
sh 'sha256sum pricing.py'
|
||||
}
|
||||
stage('Syntax') {
|
||||
sh 'python3 -m py_compile pricing.py'
|
||||
}
|
||||
stage('Unit tests') {
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user