summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Siraut <csiraut@entrouvert.com>2018-09-27 09:41:43 (GMT)
committerChristophe Siraut <csiraut@entrouvert.com>2018-09-27 09:41:43 (GMT)
commit1a4938f6d950632c57e205389477472013eb0540 (patch)
tree7998bed21c6a76e6420a78c2602ba4311ea433fb
parent7ab40c65ec9bedbf32fa7dbd00e697ce92dcb921 (diff)
downloadentrouvert-archive-1a4938f6d950632c57e205389477472013eb0540.zip
entrouvert-archive-1a4938f6d950632c57e205389477472013eb0540.tar.gz
entrouvert-archive-1a4938f6d950632c57e205389477472013eb0540.tar.bz2
add Jenkinsfile
-rw-r--r--Jenkinsfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..41abceb
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,32 @@
+@Library('eo-jenkins-lib@master') import eo.Utils
+
+pipeline {
+ agent any
+ stages {
+ stage('Unit Tests') {
+ steps {
+ sh 'echo "no test implemented"'
+ }
+ }
+ stage('Packaging') {
+ steps {
+ script {
+ if (env.JOB_NAME == 'entrouvert-archive' && env.GIT_BRANCH == 'origin/master') {
+ sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder entrouvert-archive'
+ }
+ }
+ }
+ }
+ }
+ post {
+ always {
+ script {
+ utils = new Utils()
+ utils.mail_notify(currentBuild, env, 'admin+adminsys@entrouvert.com')
+ }
+ }
+ success {
+ cleanWs()
+ }
+ }
+}