Add Jenkinsfile and version file

This commit is contained in:
Christophe Boulanger 2018-12-04 10:47:03 +01:00
parent dfdb91b460
commit 3b5e7bdd04
2 changed files with 23 additions and 0 deletions

22
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent any
triggers {
pollSCM('*/3 * * * *')
}
options {
// Keep the 50 most recent builds
buildDiscarder(logRotator(numToKeepStr:'50'))
}
stages {
stage('Build') {
steps {
sh "fpm -n passerelle-imio-ia-delib -s python -t deb -v `cat version` --prefix /usr -d passerelle setup.py"
}
}
stage('Deploy') {
steps {
sh "scp passerelle-imio-ia-delib_`cat version`_all.deb root@puppetmaster.imio.be:/tmp"
}
}
}
}

1
version Normal file
View File

@ -0,0 +1 @@
0.1.0