#1392 Adjust syntax for parallel steps in .cico-pr.pipeline
Merged 4 years ago by mprahl. Opened 4 years ago by csomh.
csomh/fm-orchestrator fix-cico-pipeline  into  master

file modified
+8 -2
@@ -59,10 +59,12 @@ 

          }

  

          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 @@ 

  

          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'

                      }

"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

Pull-Request has been merged by mprahl

4 years ago