Getting build scripts into workspace. Which is best?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting build scripts into workspace. Which is best?

Trever
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/deeab827-b48e-44ee-848d-5b7061493220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Getting build scripts into workspace. Which is best?

Lee Meador-3
Its the usual things:

* If you have one copy of those scripts and fix something in one of them, all the jobs get the fix.
* If you have one copy of those scripts and break something in one of them, all the jobs get broken.
* you are free to add variations

On Thu, Nov 3, 2016 at 2:47 PM, Trever <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/deeab827-b48e-44ee-848d-5b7061493220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA4vtDSpzhnfCGaxveG0Z76gHMwq6AUWevA3BnkAYwfLqhDCHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Getting build scripts into workspace. Which is best?

Ioannis Moutsatsos-2
In reply to this post by Trever
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 [hidden email].
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.