/
fotaxis
/
simple-python-app
Обзор
Документация
Войти
/
fotaxis
/
simple-python-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
jenkins/Jenkinsfile
59 строк
1 KB
fotaxis
update jenkins/Jenkinsfile
24 окт 2025, 16:27
24 окт 2025, 16:27
3e80dbe
Код
Авторство
О чём код?
pipeline{ agent{ docker { image 'python:3.13.9-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' } } } } }