It seems that i've taken a wrong approach.
Instead of using environment variables, i could use the method  
"getBuildVariables()" from the abstractbuild-class.
After implementing this, i'm able to use the variables defined in 
the parameterized builds section.

On Monday, December 15, 2014 4:23:24 PM UTC+1, Dennis Jacobs wrote:

> Hi Guys,
>
> I'm in bit of a jam.
> I've written a plugin which takes in a string/xml-struct which contains 
> variables. Like the following.
>
> <sign><board>${BOARDNAME}</board><version>${VERSIONHEAD}</version><full_version>${FULLVERSION}</full_version></sign>
>
> These variables are setup by the parameterized plugin, i've tested this by 
> creating a shell script build-step which calls `echo $BOARDNAME`
> And this works, the variables show the actual values!
> However if I pass this string to my plugin, it seems that the variables 
> aren't dereferenced.
> I'm getting the same string as the one above, while i expected a string in 
> the format like this.
>
> <sign><board>board_name</board><version>11.11.1</version><full_version>11.11.1-00100</full_version></sign>
>
> So my question is how can I dereference these variables properly, without 
> losing the generic-ness of the plugin.
> Since i want the plugin to remain generic, in the sense that others can 
> use other variables for their projects depending their needs.
>
> Am i missing some vital part of the jenkins-framework, which is able to do 
> this?
> Or am i one of the first who could use/need this functionality?
>
> With kind regards,
> Jacobs Dennis.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/d8ef4974-42b4-40e4-a48a-4921dd6fdeb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to