Add Assignment 6 Python application and Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-09 18:33:17 +00:00
parent 4a67a09780
commit 041adfcda4
6 changed files with 91 additions and 0 deletions
Vendored
+29
View File
@@ -0,0 +1,29 @@
pipeline {
agent any
options {
skipDefaultCheckout()
disableConcurrentBuilds()
timeout(time: 5, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '10'))
timestamps()
}
stages {
stage('Checkout') {
steps {
checkout scm
sh 'git rev-parse HEAD'
}
}
stage('Syntax check') {
steps {
sh 'python3 --version'
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
}