Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47129

Executing multiple declaritive pipelines into a scripted pipeline is not possible anymore

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I work on a very big project and for us it's not suitable to put all tests into one jenkinsfile. On jenkins we have for each one a dedicated pipeline job. However in the end when somebody makes a pull request towards the master branch, we want to load every pipeline into a single job for convenience reasons. This is done with a scripted pipeline which scans for the other jenkinsfile's and then executes them in parallel with the 'load' command.

      However after the recent update of the pipeline model to 1.2, this isn't working anymore with the following error:

      Java.lang.IllegalStateException: Only one pipeline { ... } block can be executed in a single run.

      This exception blocks us from using declaritive pipelines in a complex manner .

        Attachments

          Activity

            People

            Assignee:
            abayer Andrew Bayer
            Reporter:
            roel0 roel postelmans
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: