summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-14 18:40:55 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-14 20:33:31 (GMT)
commit14febd3c5f693c928b5f99eb83bc9a2385f4d176 (patch)
tree7187dc3c5f05fa27789ba2bd22b8da8e2487227d
parent5070a06a9a7256ea66a49b534f734abc79ac100e (diff)
downloadlasso-14febd3c5f693c928b5f99eb83bc9a2385f4d176.zip
lasso-14febd3c5f693c928b5f99eb83bc9a2385f4d176.tar.gz
lasso-14febd3c5f693c928b5f99eb83bc9a2385f4d176.tar.bz2
add Jenkinsfile
-rw-r--r--Jenkinsfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..4b42203
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,33 @@
+@Library('eo-jenkins-lib@master') import eo.Utils
+
+pipeline {
+ agent any
+ stages {
+ stage('Unit Tests') {
+ steps {
+ sh './jenkins.sh'
+ }
+ }
+ stage('Packaging') {
+ when {
+ expression {
+ currentBuild.result == null || currentBuild.result == 'SUCCESS'
+ }
+ anyOf {
+ tag 'v*'
+ branch 'master'
+ }
+ }
+ steps {
+ script {
+ sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder lasso'
+ }
+ }
+ }
+ }
+ post {
+ success {
+ cleanWs()
+ }
+ }
+}