remove Jenkinsfile
This commit is contained in:
parent
2c9eb0a342
commit
2506683b7b
1 changed files with 0 additions and 49 deletions
49
Jenkinsfile
vendored
49
Jenkinsfile
vendored
|
@ -1,49 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent none
|
|
||||||
options {
|
|
||||||
skipStagesAfterUnstable()
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Build') {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'python:2-alpine'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'qnib/pytest'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
junit 'test-reports/results.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deliver') { //1
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'cdrx/pyinstaller-linux:python2' //2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '/root/.pyenv/shims/pyinstaller --onefile sources/add2vals.py' //3
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
success {
|
|
||||||
archiveArtifacts 'dist/add2vals' //4
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue