Hi,
As explained here <https://jenkins.io/doc/book/pipeline/shared-libraries/>, 
a library can be dynamically retrieved in the following way:

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


Is there a way to load *multiple *libraries in the same command?

For example, instead of: 

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

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


I want to do something like this (not working):

library identifier: ['first-lib@master', 'second-lib@master'], retriever: 
modernSCM(

  [$class: 'GitSCMSource',
   remote: '[email protected]:my-jenkins-utils.git',
   credentialsId: 'my-private-key'])



Thanks! :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/659061df-e58b-466f-88ab-893bb49f2eff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to