Correct Daniel.

I just boiled an example down to one parameter of interest.
In job 1, I defined a variable named VALUE_FROM_JOB_1
In the job, via Powershell, I created a parameters file, with the following 
content:

VALUE_FROM_JOB_1="I-was-defined-in-job-1"


In Job 2, I defined the parameter VALUE_FROM_JOB_1 and set its value to 
"unknown".
When I run Job 1--which triggers Job 2--, Here's what I get from Job 2:

 $ cmd /c call 
C:\Users\ROCBUI~1\AppData\Local\Temp\hudson4898377112420378449.bat
ERROR: Build step failed with exceptionjava.lang.IllegalArgumentException 
<http://stacktrace.jenkins-ci.org/search?query=java.lang.IllegalArgumentException>:
 Invalid environment variable name: "??VALUE_FROM_JOB_1"
        at java.lang.ProcessEnvironment.validateName(Unknown Source)
        at java.lang.ProcessEnvironment.put(Unknown Source)

In some of the test jobs I've set up, the variable(s) being passed simple 
retain the default value I gave them in job 2
(i.e., there are no complaints from Java, but the value passed from Job#1 
was not taken on in job 2).

I hope you have some ideas.

Thanks for your help.

Steve K.

On Friday, October 7, 2016 at 5:28:54 AM UTC-4, Daniel Beck wrote:
>
> To clarify, all the parameters you intend to pass are defined on the 
> downstream job's configuration but it still doesn't work? 
>
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/52f360e2-ea87-4954-88fd-57ad9d75ba7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to