Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- stages {
- stage('Build') {
- steps {
- git branch: 'main', url: 'https://github.com/KoRnZYSIEK/frontend_test'
- sh """pkill -f app.py || true
- virtualenv venv && . venv/bin/activate
- pip3 install -r requirements.txt
- python3 -m pytest --cov=. --cov-report xml:test-results/coverage.xml --junitxml=test-results/pytest-report.xml
- BUILD_ID=dontKillMe nohup python3 app.py &"""
- }
- post {
- always {
- junit 'test-results/*.xml'
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement