/
HotDoshirak
/
simple-python-app
Обзор
Документация
Войти
/
HotDoshirak
/
simple-python-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Jenkinsfile
58 строк
1 KB
HotDoshirak
upload files
20 окт 2025, 14:57
20 окт 2025, 14:57
2db8071
Код
Авторство
О чём код?
pipeline { agent { docker { image 'python:3.10-slim' } } options { skipStagesAfterUnstable() } stages { stage('Setup') { steps { sh ''' python -m venv venv . venv/bin/activate pip install -r requirements.txt ''' } } stage('Build') { steps { sh ''' . venv/bin/activate python -m py_compile sources/add2vals.py sources/calc.py ''' stash(name: 'compiled-results', includes: 'sources/*.py') } } stage('Test') { steps { sh ''' . venv/bin/activate py.test --junit-xml test-reports/results.xml sources/test_calc.py ''' } post { always { junit 'test-reports/results.xml' } } } stage('Deliver') { steps { echo "Собираю дистрибутив..." } post { success { archiveArtifacts artifacts: "**/*.py", fingerprint: true } } } } }