Re: envinject plugin: should it be able to set the workspace?

2015-10-31 Thread Martin d'Anjou
On Friday, October 23, 2015 at 11:08:22 AM UTC-4, rginga wrote:
>
> Martin, while the envinject plugin will let you set environment variables 
> that you might be able to use to point to some other folder than the job’s 
> default workspace, you might be able to use the Use Custom Workspace option 
> under Advanced Project Options:
>

I use EnvInject to compute the location of the workspace, this is injected 
as a variable which I use in the Custom Workspace option. I wish the 
Workflow would accept variables from EnvInject as I need to set the 
workspace before the Git Plugin jumps into action.

-- 
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/e5aa0903-ccdd-4065-9eb5-719b901c02bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: envinject plugin: should it be able to set the workspace?

2015-10-28 Thread Krishna Kumar Tiwari
One use of envlnject which i have used
Create a standard java .properties file and you can fetch the environmental 
variable and these can be used during your job. you need to specify the 
properties file in your job configuration. 
One way to do it copy the properties file from your slave node/master node 
to $WORKSPACE.

cp /root/build.properties $WORKSPACE/ 

here build.properties file is the standard java  properties file. 

On Friday, 23 October 2015 20:25:08 UTC+5:30, Martin d'Anjou wrote:
>
> A while ago, I was able to use the envinject plugin to set the workspace 
> path, but it does do that anymore. I wish I could control the workspace 
> location for two reasons:
> 1) I need to share workspaces between jobs because of the large volume of 
> data being produced (archiving is not practical)
> 2) Gradle is unable to continue a build when the absolute path to the 
> build output changes 
> 
> .
>
> Q) Is the envinject supposed to be able to control the workspace location?
>
> Thanks,
> Martin
>

-- 
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/c72b6743-13a7-4a46-b751-b25f7ba7db37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: envinject plugin: should it be able to set the workspace?

2015-10-23 Thread Ginga, Dick
Martin, while the envinject plugin will let you set environment variables that 
you might be able to use to point to some other folder than the job’s default 
workspace, you might be able to use the Use Custom Workspace option under 
Advanced Project Options:

For each job on Jenkins, Jenkins allocates a unique "workspace directory." This 
is the directory where the code is checked out and builds happen. Normally you 
should let Jenkins allocate and clean up workspace directories, but in several 
situations this is problematic, and in such case, this option lets you specify 
the workspace location manually.
One such situation is where paths are hard-coded and the code needs to be built 
on a specific location. While there's no doubt that such a build is not ideal, 
this option allows you to get going in such a situation.


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Martin d'Anjou
Sent: Friday, October 23, 2015 10:55 AM
To: Jenkins Users
Subject: envinject plugin: should it be able to set the workspace?

A while ago, I was able to use the envinject plugin to set the workspace path, 
but it does do that anymore. I wish I could control the workspace location for 
two reasons:
1) I need to share workspaces between jobs because of the large volume of data 
being produced (archiving is not practical)
2) Gradle is unable to continue a build when the absolute path to the build 
output 
changes.

Q) Is the envinject supposed to be able to control the workspace location?

Thanks,
Martin
--
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/3c39a5e5-0df0-4756-bc43-f99430a44564%40googlegroups.com.
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/6C6EE445A6F6CE4E8A0FFB51B071A4E2D868103B%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.