The mvn clean command worked :D that you so much for the help!
On Tuesday, August 21, 2012 3:57:12 PM UTC+1, ThomasBrouwer wrote:
>
> Hi there!
>
> I just cannot seem to be able to add environmental variables in my plugin.
> I made a separate class extending EnvironmentContributor:
>
> package hu
Hi,
it should be called at least when the job is built.
Vincent
2012/8/21 ThomasBrouwer
> Hi Vincent,
>
> Thanks for the reply!
> Unfortunately hpi:run doesn't work well for me, just gives me weird Java
> errors. Probably something with the network messed up, too much effort to
> fix it anywa
Hi Vincent,
Thanks for the reply!
Unfortunately hpi:run doesn't work well for me, just gives me weird Java
errors. Probably something with the network messed up, too much effort to
fix it anyways.
The weird thing is that buildEnvironmentFor() is never even executed, so
changing it to a log woul
Hi Thomas,
I replaced
ThrottleQueueTaskDispatcher.writeMessage("Running buildEnvironmentFor()!");
with a simple listener.getLogger().println("Adding labels to environment");
then I just created a job with a single build step calling SET (I'm on
windows) and I could see the LABELS environment vari
Also, how did you check whether the value came through? Just created a test
job and did echo $LABELS or something like that?
On Tuesday, August 21, 2012 3:57:12 PM UTC+1, ThomasBrouwer wrote:
>
> Hi there!
>
> I just cannot seem to be able to add environmental variables in my plugin.
> I made a
Hi Vincent,
Thanks for replying :)
My debugging setup does not work, so I simply do install on the project,
and then load the output .hpi file into my Jenkins.
So strange that it works for you. Do you have any jelly files or such made
for this class? Perhaps one of my plugins is conflicting wit
Hi Thomas,
I just copy pasted your code into a plugin project and on my side this
seems to work fine.
How are you running/debugging your plugin?
Vincent
2012/8/21 ThomasBrouwer
> Hi there!
>
> I just cannot seem to be able to add environmental variables in my plugin.
> I made a separate clas
Hi there!
I just cannot seem to be able to add environmental variables in my plugin.
I made a separate class extending EnvironmentContributor:
package hudson.plugins.throttleconcurrents;
import hudson.EnvVars;
import hudson.Extension;
import hudson.model.EnvironmentContributor;
import hudson.mo