summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
blob: 41abceb4d1fcbb739085b4ad698cb6886a305df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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()
        }
    }
}