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

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

    XMLWordPrintable

Details

    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

          roel0 roel postelmans created issue -
          abayer Andrew Bayer made changes -
          Field Original Value New Value
          Summary Loading multiple declaritive pipelines into a scripted pipeline is not possible anymore Executing multiple declaritive pipelines into a scripted pipeline is not possible anymore
          abayer Andrew Bayer made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          abhishekmukherg Abhishek Mukherjee made changes -
          Assignee Andrew Bayer [ abayer ] Abhishek Mukherjee [ abhishekmukherg ]
          abhishekmukherg Abhishek Mukherjee made changes -
          Assignee Abhishek Mukherjee [ abhishekmukherg ] Andrew Bayer [ abayer ]
          bitwiseman Liam Newman made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: