If a script is shared among multiple projects and can be used as a build 
step I usually manage it through the Scriptler 
(https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin) library.

If a script is unique to a project I place it in a 'buildScripts' 
sub-folder of the specific Jenkins project and manage it as part of the 
project configuration.

I'm sure others have come with alternate variations

On Thursday, November 3, 2016 at 3:47:51 PM UTC-4, Trever wrote:
>
> We have our build scripts in a git repository.  Currently we have every 
> one of our pipeline jobs check out the build scripts into the workspace 
> directory in order to run the scripts.  This works fine.  
>
> While reading through some other Jenkins posts, I see that we could 
> optionally have a job that creates an archive out of the build scripts and 
> our pipeline jobs could copy those scripts from the archived artifacts.  
>
> Is one method better than the other?  Would there be any benefits to doing 
> it one way over another?
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f7ae0b7f-9f22-4fcd-8ffc-5904ecec5453%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to