In Jenkins 2.x you go to “Manage Jenkins” -> “Configure System” and configure the “Global Pipeline libraries” SCM location:
[cid:image001.png@01D26B2A.893ADB60] From: <jenkinsci-users@googlegroups.com> on behalf of Mark Bidewell <mbide...@gmail.com> Reply-To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> Date: Tuesday, January 10, 2017 at 9:57 AM To: Jenkins Users <jenkinsci-users@googlegroups.com> Subject: Re: Loading scripts from Workflow resources Thanks, I do #2 right now, but the scripts are in a separate version control. What I would like to do is have the scripts checked out by Jenkins with the external library so that they are auto-updated. Is there a variable or step that gives the path to the location where the library files are checked out? On Tuesday, January 10, 2017 at 10:06:07 AM UTC-5, Ramanathan Muthaiah wrote: On Tuesday, January 10, 2017 at 7:08:01 PM UTC+5:30, Mark Bidewell wrote: I am looking at the external libraries capabilities of Jenkins Workflow. Our workflow uses python scripts for portions of the build process. Can this scripts be stored as resources and a path to them retrieved via workflow? Right now the scripts are in a directory on the server not under Jenkins control. Two (actually three) possible options: 1) Explore "Managed Scripts" plugin (I suppose this supports only shell scripts) alongwith Config File Provider plugin. 2) If you have Pipeline plugin installed, then these Python scripts can be invoked using step, "sh" but this will demand your scripts in version control. 3) If the Jenkins job is a freestyle project, then the entire script can be added as a 'build step' ; but then, every change to the build script (for bug fixes or new improvements), job needs to be modified and the script content should be replaced. /Ram -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f0670d45-f022-45e8-8e34-abb47ad8c508%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/f0670d45-f022-45e8-8e34-abb47ad8c508%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CD89A983-12D7-41B7-8350-511754DFF93C%40cisco.com. For more options, visit https://groups.google.com/d/optout.