Files
startup-product/Jenkinsfile
T
sespinal 35605c33b9
startup-product-ci/pipeline/pr-main There was a failure building this commit
Add pricing checks and controlled defect for issue #8
2026-10-21 23:07:42 +00:00

28 lines
592 B
Groovy

pipeline {
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('Syntax check') {
steps {
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Unit tests') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
}