Skip to content

Instantly share code, notes, and snippets.

@arilivigni
Created August 28, 2017 18:27
Show Gist options
  • Save arilivigni/2d3fbb23fb15eda5b8a5f05bb7cf804e to your computer and use it in GitHub Desktop.
Save arilivigni/2d3fbb23fb15eda5b8a5f05bb7cf804e to your computer and use it in GitHub Desktop.
Dynamic Shared Libraries
env.REMOTE = env.BRANCH_NAME ?: 'https://github.com/CentOS/cico-pipeline-library.git'
env.ghprbActualCommit = env.ghprbActualCommit ?: 'master'
library identifier: "cico-pipeline-lib@${env.ghprbActualCommit}",
retriever: modernSCM([$class: 'GitSCMSource',
remote: "${env.REMOTE}"])
import org.centos.*
node {
deleteDir()
cicoPipeline {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment