17 lines
452 B
Groovy
17 lines
452 B
Groovy
pipeline {
|
|
agent none
|
|
stages {
|
|
stage('Build') {
|
|
agent {
|
|
docker {
|
|
image 'python:2-alpine'
|
|
registryUrl 'https://hub.docker.com/'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
|
|
stash(name: 'compiled-results', includes: 'sources/*.py*')
|
|
}
|
|
}
|
|
}
|
|
}
|