Adjust syntax for parallel steps in .cico-pr.pipeline

"parallel" has a different syntac in scripted pipelines than in
declarative ones, see:
https://jenkins.io/doc/book/pipeline/jenkinsfile/#parallel-execution

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
Hunor Csomortáni
2019-08-23 17:22:07 +02:00
parent f3db9a0ac2
commit 1ae7976a22

View File

@@ -59,10 +59,12 @@ node('factory2'){
}
stage('Pull Container Images') {
parallel {
parallel centos: {
stage('Pull quay.io/factory2/mbs-test-centos') {
onmyduffynode 'docker pull quay.io/factory2/mbs-test-centos'
}
},
fedora: {
stage('Pull quay.io/factory2/mbs-test-fedora') {
onmyduffynode 'docker pull quay.io/factory2/mbs-test-fedora'
}
@@ -71,13 +73,17 @@ node('factory2'){
stage('Run Test Suites') {
timeout(30) {
parallel {
parallel py2_sqlite: {
stage('Test with Python 2 & SQLite') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --no-tty'
}
},
py3_sqlite: {
stage('Test with Python 3 & SQLite') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --py3 --no-tty'
}
},
py3_postgres: {
stage('Test with Python 3 & Postgresql') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --py3 --with-pgsql --no-tty'
}