Yes there is a good guide: check in the build script into the version control 
system together with the source code.

And if you are not using a version control system, you might want to start 
using one. 

-- Sami

ZHANG Xinchun A <xinchun.a.zh...@alcatel-lucent.com> kirjoitti 29.7.2012 kello 
7.32:

> Hello Chris,
> Thanks.
> The only difference between my two building is that, I added another job in 
> Jenkins.
> In the first, my Jenkins only has one job, but now it has two job for 
> different work.
> Nothing else is changed, and I didn’t use custom workspace neither.
>  
> Maybe you are right.
> I shouldn’t rely on the specific path of workspace.
> My purpose is that I have some different building scripts for different jobs.
> And I want them to be at some place which indicates that which script is for 
> which jobs.
> I thought the workspace for each job is a good place to be used for this.
>  
> Is there any good guide to organize different building scripts for different 
> jobs?
>  
>  
> Br,
> Tony Zhang, Tz
> From: cjo [mailto:cjo.john...@gmail.com] 
> Sent: Friday, July 27, 2012 5:59 PM
> To: jenkinsci-users@googlegroups.com
> Cc: ZHANG Xinchun A
> Subject: Re: job build directory is changed in jenkins
>  
>  
> What is your setup?
> Does it have master + slaves?
> The master and slave paths are different.
> Did the jobs run on the same slave?
>  
> Have you updated the Jenkins version between those two builds?
> Has anyone altered the path for the master workspace in 
> <your_server>/configure advanced item below the home path.
> 
> However unless you use the custom workspace option for your jobs you should 
> not rely on the workspace being in any particular location.
> If you have a build script located in that place, consider placing it in a 
> shared location and copying it to the workspace at the beginning of the job 
> (assuming that the script is not part of the source code checkout) using one 
> of the copy plugins [1] or [2].
>  
>  
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Copy+To+Slave+Plugin
> [2] https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin
> 
> Chris.
> 
> On Friday, July 27, 2012 8:11:25 AM UTC+1, ZHANG Xinchun A wrote:
> Hello,
> I got a urgent problem.
> Yesterday, my jobs would build in “Building in workspace 
> d:\jenkins\workspace\UTT_Auto_Execution”
> That’s right. Because my build script is at that place
>  
> But today, I run the job again.
> It changed to “Building in workspace 
> d:\jenkins\jobs\UTT_Auto_Execution\workspace”
>  
> Anybody know how this happens?
>  
>  
> Br,
> Tony Zhang, Tz

Reply via email to