Projet

Général

Profil

0001-run-tests-on-each-distribution-in-parallel-56219.patch

Emmanuel Cazenave, 17 août 2021 18:22

Télécharger (2,06 ko)

Voir les différences:

Subject: [PATCH] run tests on each distribution in parallel (#56219)

 Jenkinsfile | 39 +++++++++++++++++++++++----------------
 1 file changed, 23 insertions(+), 16 deletions(-)
Jenkinsfile
4 4
    agent any
5 5
    options { disableConcurrentBuilds() }
6 6
    stages {
7
        stage('Unit Tests (buster)') {
8
            steps {
9
                catchError(stageResult: 'FAILURE') {
10
                    sh 'sudo ./test-nspawn buster'
7
        stage('Unit Tests') {
8
            parallel {
9
                stage('Unit Tests (buster)') {
10
                    agent any
11
                    steps {
12
                        catchError(stageResult: 'FAILURE') {
13
                            sh 'sudo ./test-nspawn buster'
14
                        }
15
                    }
11 16
                }
12
            }
13
        }
14
        stage('Unit Tests (bullseye)') {
15
            steps {
16
                catchError(stageResult: 'FAILURE') {
17
                    sh 'sudo ./test-nspawn bullseye'
17
                stage('Unit Tests (bullseye)') {
18
                    agent any
19
                    steps {
20
                        catchError(stageResult: 'FAILURE') {
21
                            sh 'sudo ./test-nspawn bullseye'
22
                        }
23
                    }
18 24
                }
19
            }
20
        }
21
        stage('Unit Tests (bookworm)') {
22
            steps {
23
                catchError(stageResult: 'FAILURE') {
24
                    sh 'sudo ./test-nspawn bookworm'
25
                stage('Unit Tests (bookworm)') {
26
                    agent any
27
                    steps {
28
                        catchError(stageResult: 'FAILURE') {
29
                            sh 'sudo ./test-nspawn bookworm'
30
                        }
31
                    }
25 32
                }
26 33
            }
27 34
        }
28
-