Dynamically load multiple libraries in one step

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      As explained here, a library can be dynamically retrieved in the following way:
      {{}}

      library identifier: 'custom-lib@master', retriever: modernSCM(
        [$class: 'GitSCMSource',
         remote: 'git@git.mycorp.com:my-jenkins-utils.git',
         credentialsId: 'my-private-key'])

      {{}}
      Please enable multiple libraries loading, in one command.
      For example, instead of: 
      {{}}

      library identifier: 'first-lib@master', retriever: modernSCM(
        [$class: 'GitSCMSource',
         remote: 'git@git.mycorp.com:my-jenkins-utils.git',
         credentialsId: 'my-private-key'])
      
      library identifier: 'second-lib@master', retriever: modernSCM(
        [$class: 'GitSCMSource',
         remote: 'git@git.mycorp.com:my-jenkins-utils.git',
         credentialsId: 'my-private-key'])

      We could just write:
      {{}}

      library identifier: ['first-lib@master', 'second-lib@master'], retriever: modernSCM(  [$class: 'GitSCMSource',
         remote: 'git@git.mycorp.com:my-jenkins-utils.git',
         credentialsId: 'my-private-key'])

      {{}}
       
      Thanks

            Assignee:
            Unassigned
            Reporter:
            S H
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: