From 1ae7976a22140e870444aed4723828d28e6eaaa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Fri, 23 Aug 2019 17:22:07 +0200 Subject: [PATCH] Adjust syntax for parallel steps in .cico-pr.pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 --- .cico-pr.pipeline | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.cico-pr.pipeline b/.cico-pr.pipeline index dc5683ce..9c7bb3f7 100644 --- a/.cico-pr.pipeline +++ b/.cico-pr.pipeline @@ -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' }