0005-jenkins-run-tests-in-parallel-41236.patch
Jenkinsfile | ||
---|---|---|
5 | 5 |
options { disableConcurrentBuilds() } |
6 | 6 |
stages { |
7 | 7 |
stage('Unit Tests') { |
8 |
steps { |
|
9 |
sh 'tox -rv' |
|
8 |
parallel { |
|
9 |
stage('Unit tests django 1.11') { |
|
10 |
agent any |
|
11 |
steps { |
|
12 |
sh 'tox -rv -e py3-django111-pylint-coverage' |
|
13 |
} |
|
14 |
post { |
|
15 |
always { |
|
16 |
stash includes:'junit-py3-django111-pylint-coverage.xml', name: 'django111' |
|
17 |
script { |
|
18 |
utils = new Utils() |
|
19 |
utils.publish_coverage('coverage.xml') |
|
20 |
utils.publish_coverage_native('index.html') |
|
21 |
utils.publish_pylint('pylint.out') |
|
22 |
} |
|
23 |
} |
|
24 |
} |
|
25 |
} |
|
26 |
stage('Unit tests django 2.2') { |
|
27 |
agent any |
|
28 |
steps { |
|
29 |
sh 'tox -rv -e py3-django22' |
|
30 |
} |
|
31 |
post { |
|
32 |
always { |
|
33 |
stash includes:'junit-py3-django22.xml', name: 'django22' |
|
34 |
} |
|
35 |
} |
|
36 |
} |
|
10 | 37 |
} |
11 | 38 |
post { |
12 | 39 |
always { |
13 |
script { |
|
14 |
utils = new Utils() |
|
15 |
utils.publish_coverage('coverage.xml') |
|
16 |
utils.publish_coverage_native('index.html') |
|
17 |
utils.publish_pylint('pylint.out') |
|
18 |
} |
|
40 |
unstash 'django111' |
|
41 |
unstash 'django22' |
|
19 | 42 |
mergeJunitResults() |
20 | 43 |
} |
21 | 44 |
} |
22 | 45 |
} |
23 | 46 |
stage('Packaging') { |
47 |
agent any |
|
24 | 48 |
steps { |
25 | 49 |
script { |
26 | 50 |
if (env.JOB_NAME == 'wcs' && env.GIT_BRANCH == 'origin/master') { |
27 |
- |