I have learned some things and I think I am REALLY CLOSE to my goal but I 
have hit a wall. Let me be specific:

I have a CORE build job that will be invoked via Build-Flow from other jobs 
asynchronously, passing different parameters. I want to Archive the CORE 
build result into the calling job. In my calling job I have created a build 
parameter of type "Build Selector for Copy Artifact" with a dummy build 
number (61). I have found that parameter in 
build.properties.buildVariables. I want to SET that property to something 
else and use it in the post-build Copy Artifacts from another project.For 
example:

b = build ("Core-build-job")

build.properties.buildVariables = b.build.number (correctly formatted)

my DSL does this trying to change the build number to 63

out.println "Build variables are: " + build.properties.buildVariables

build.properties.buildVariables = 
"[CORE_BUILD_NUMBER1:<SpecificBuildSelector plugin=\"[email protected]\"> 
 <buildNumber>*63*</buildNumber></SpecificBuildSelector>]"

out.println "Build variables are: " + build.properties.buildVariables

the output is this:

Build variables are: [CORE_BUILD_NUMBER1:<SpecificBuildSelector 
plugin="[email protected]">  
<buildNumber>*61*</buildNumber></SpecificBuildSelector>]
Build variables are: [CORE_BUILD_NUMBER1:<SpecificBuildSelector 
plugin="[email protected]">  
<buildNumber>*61*</buildNumber></SpecificBuildSelector>]


WHY CAN'T I CHANGE THAT PROPERTY?


On Wednesday, August 14, 2013 3:45:54 PM UTC-4, rginga wrote:
>
> I have created a parameterized build-flow job. In the DSL portion, I can 
> access the parameter value that I setup: REAL_BUILD_NUMBER as 
> params["REAL_BUILD_NUMBER"]. I call my downstream build as b = build(...). 
> I now want to set REAL_BUILD_NUMBER equal to b.build.number for use in a 
> post-build step. I cannot figure out the syntax here. 
> params["REAL_BUILD_NUMBER"] = b.build.number is syntactically correct but 
> does not change the value. params["REAL_BUILD_NUMBER"] = "a dummy string" 
> also does not change the value
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to