-1

This Q&A is related to this one and is slightly different.

cedric
  • 103
  • 3
030
  • 13,383
  • 17
  • 76
  • 178

1 Answers1

1

https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/demos/jenkins/jenkins.yaml

It should be possible by configuring it like this:

unclassified:
  globalLibraries:
    libraries:
      - name: "some-lib"
        retriever:
          modernSCM:
            scm:
              git:
                remote: "https://github.com/some-project.git"
                credentialsId: 'some-credentials'
030
  • 13,383
  • 17
  • 76
  • 178