Remote Loader

Pipeline Remote Loader

node {
    def remoteScript = fileLoader.fromGit('jenkins/release.groovy', "https://github.com/nrayapati/kcdc_test.git", 'master', null, '')
    remoteScript.prepare()
    remoteScript.release()
    remoteScript.clean()
}

Note: Install this plugin: https://plugins.jenkins.io/workflow-remote-loader