Jenkinsfile_evolve_pure 1.44 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
pipeline {
    agent { label 'gcloud-public' }

    environment {
        HGTEST_PORT = Integer.toString(Math.abs((new Random().nextInt() % 8000) * 5) + 20000)
    }

    stages {
        stage('Checkout Mercurial') {
            steps {
Boris Feld's avatar
Boris Feld committed
11
                checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://mirror.octobus.net/hg/', clean: true, disableChangeLog: false, subdir: 'mercurial'])
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
            }
        }
        stage('Build Mercurial') {
            steps {
                dir("mercurial") {
                    sh "make local";
                }
            }
        }
        stage('Checkout Evolve') {
            steps {
                checkout([$class: 'MercurialSCM', credentialsId: '', source: 'https://www.mercurial-scm.org/repo/evolve/', clean: true, disableChangeLog: false, subdir: 'evolve'])
            }
        }

        stage("Pure tests") {
            steps {
                dir("evolve/tests") {
                    catchError {
                        sh "echo $HGTEST_PORT"
                        sh "../../mercurial/tests/run-tests.py --pure -l -t 1200"
                    }
                }
            }
        }

    }

    post {
        failure {
            step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'boris.feld@octobus.net pierre-yves.david@octobus.net', sendToIndividuals: false])

            sh "./irc_notification.sh 'Evolve build is broken, see ${BUILD_URL}'"
        }
    }
}