Projet

Général

Profil

0001-Jenkinsfile-always-publish-test-results-60129.patch

Benjamin Dauvergne, 24 janvier 2022 18:18

Télécharger (2,25 ko)

Voir les différences:

Subject: [PATCH] Jenkinsfile: always publish test results (#60129)

 Jenkinsfile | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)
Jenkinsfile
15 15
${env.TMPDIR}/venv/bin/pip install tox
16 16
PGPORT=`python3 -c 'import struct; import socket; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack("ii", 1, 0)); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` pg_virtualenv -o fsync=off ${env.TMPDIR}/venv/bin/tox -rv"""
17 17
            }
18
            post {
19
                always {
20
                    script {
21
                        utils = new Utils()
22
                        utils.publish_coverage('coverage.xml')
23
                        utils.publish_coverage_native('index.html')
24
                        utils.publish_pylint('pylint.out')
25
                    }
26
                    mergeJunitResults()
27
                }
28
            }
18 29
        }
19 30
        stage('Unit Tests (nightly)') {
20 31
            when { triggeredBy 'TimerTrigger' }
......
32 43
                    }
33 44
                }
34 45
            }
35
        }
36
        stage('Publish') {
37
           steps {
38
            script {
39
                utils = new Utils()
40
                utils.publish_coverage('coverage.xml')
41
                utils.publish_coverage_native('index.html')
42
                utils.publish_pylint('pylint.out')
46
            post {
47
                always {
48
                    script {
49
                        utils = new Utils()
50
                        utils.publish_coverage('coverage.xml')
51
                        utils.publish_coverage_native('index.html')
52
                        utils.publish_pylint('pylint.out')
53
                    }
54
                    mergeJunitResults()
55
                }
43 56
            }
44
            mergeJunitResults()
45
           }
46 57
        }
47 58
        stage('Packaging') {
48 59
            steps {
49
-