I have a workflow job with one Parameter defined in the job: (actually 
have additional, just stripped them out for this.    I can not seem to get 
these Parameters to show up in the slave's script when it runs.

   Joe=99

In the Groovy script that I run stripped down to the bare bones:

def nodes=[:]
def BWS=[:]

echo "Joe Value     :   ${JOE}"

for (int i=0; i<1; i++)
{
    echo "Working on ${i}"

    BWS["b${i}"] = {

    node('Test') {                              
                                  def j= bat '''echo "This is the beginning
                                   set
                                   echo "This is the ending"''' 
                                   echo "j=$j"                    
                     }
      }
} 
parallel BWS

When this runs the output of the "set" command does not contain the 
variable "JOE" or any of the other Parameters I set in the job.

>From the set command with non Jenkins stuff removed, none of the Jenkins 
Variables that I want, are not shown in the output and available to the 
batch script.  How do I get the Parameters injected into the batch script 
when it runs?



[b0] c:\Jenkins\workspace\Build_Flow_test\Workflow- Creating Nodes 
internally>set

[b0] BASE=c:\Jenkins
[b0] BUILD_DISPLAY_NAME=#45
[b0] BUILD_ID=2015-09-29_13-18-17
[b0] BUILD_NUMBER=45
[b0] BUILD_TAG=jenkins-Build_Flow_test-Workflow- Creating Nodes internally-45
[b0] 
BUILD_URL=http://algo-jenkins-prod:8080/job/Build_Flow_test/job/Workflow-%20Creating%20Nodes%20internally/45/

[b0] HUDSON_COOKIE=96487bbc-8449-4eae-b08e-eb17a721923e
[b0] HUDSON_HOME=/var/lib/jenkins
[b0] HUDSON_SERVER_COOKIE=70de996d0d3db956
[b0] HUDSON_URL=http://algo-jenkins-prod:8080/
[b0] JENKINS_HOME=/var/lib/jenkins
[b0] JENKINS_SERVER_COOKIE=durable-acdc08afee6c098770e1a6985e0cf77e
[b0] JENKINS_URL=http://algo-jenkins-prod:8080/
[b0] JOB_NAME=Build_Flow_test/Workflow- Creating Nodes internally
[b0] 
JOB_URL=http://algo-jenkins-prod:8080/job/Build_Flow_test/job/Workflow-%20Creating%20Nodes%20internally/


-- 
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/abacddbc-9894-40d2-bebc-0960b4e84cd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to