Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommysdk/e752486bf7e0eeec0ed3dd32e56f61a4 to your computer and use it in GitHub Desktop.
Save tommysdk/e752486bf7e0eeec0ed3dd32e56f61a4 to your computer and use it in GitHub Desktop.
XML configuration for Jenkins pipeline shared groovy libraries
<org.jenkinsci.plugins.workflow.libs.GlobalLibraries plugin="workflow-cps-global-lib@2.8">
<libraries>
<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
<name>my-shared-library</name>
<retriever class="org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever">
<scm class="jenkins.plugins.git.GitSCMSource" plugin="git@3.4.1">
<id>7356ba0d-a25f-4f61-8c56-b3c565a39929</id>
<remote>ssh://git@github.com:Diabol/jenkins-pipeline-shared-library-template.git</remote>
<credentialsId>ssh</credentialsId>
<traits>
<jenkins.plugins.git.traits.BranchDiscoveryTrait/>
</traits>
</scm>
</retriever>
<defaultVersion>master</defaultVersion>
<implicit>true</implicit>
<allowVersionOverride>true</allowVersionOverride>
</org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
</libraries>
</org.jenkinsci.plugins.workflow.libs.GlobalLibraries>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment