simple-python-pyinstaller-app/jenkins/Jenkinsfile-for-windows

35 lines
801 B
Text

pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'python:3.4-slim'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py'
}
}
stage('Test') {
agent {
docker {
image 'python:3.4-slim'
}
}
steps {
sh 'python sources/test_calc.py'
}
}
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-windows'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
}
}
}