/
Ryatronth
/
simple-python-app
Обзор
Документация
Войти
/
Ryatronth
/
simple-python-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
jenkins/Jenkinsfile
60 строк
1 KB
Ryatronth
update jenkins/Jenkinsfile
19 окт 2025, 20:48
19 окт 2025, 20:48
2ce33be
Код
Авторство
О чём код?
pipeline { agent { docker { image 'python:3.13.7-alpine3.22' } } 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' } } } } }