-1

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

1 Answer 1

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'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.