simple-python-pyinstaller-app/Jenkinsfile
2021-03-11 14:12:52 +08:00

19 lines
454 B
Groovy

pipeline {
agent none
environment {
PATH = "$PATH:/usr/local/bin"
}
stages {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
stash(name: 'compiled-results', includes: 'sources/*.py*')
}
}
}
}