//binding.variables.each{ println it.key println it.value }
println (" BUILD_NUMBER = " + binding.variables.BUILD_NUMBER)
BUILD_CAUSE=USERIDCAUSE
BUILD_CAUSE_USERIDCAUSE=true
BUILD_ID=2013-05-22_22-53-55
BUILD_NUMBER=3
BUILD_TAG=jenkins-job-dsl-env-3
EXECUTOR_NUMBER=0
HOME=/Users/jryan
HUDSON_HOME=/Users/jryan/Projects/Roundup/jenkins-job-dsl/work
HUDSON_SERVER_COOKIE=e09a20865eb98095e7f486932d021983
JENKINS_HOME=/Users/jryan/Projects/Roundup/jenkins-job-dsl/work
JENKINS_SERVER_COOKIE=e09a20865eb98095e7f486932d021983
JOB_NAME=job-dsl-env
LANG=en_US.UTF-8
LOGNAME=jryan
NODE_LABELS=master
NODE_NAME=
OLDPWD=/Users/jryan/Projects/Roundup/jenkins-job-dsl
PWD=/Users/jryan/Projects/Roundup/jenkins-job-dsl
SHELL=/bin/bash
TERM=xterm
TMPDIR=/var/folders/2q/nkf8g47s4k50hbn2q633q0ww_yp9s1/T/
USER=jryan
--To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/00c72446-98a3-4dfd-8d3b-8b40ef11166c%40googlegroups.com?hl=en.
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
println "BUILD_NUMBER = ${BUILD_NUMBER}"
println "BRANCH_NAME = ${BRANCH_NAME}"
//println "BUILD_NUMBER = " + ${BUILD_NUMBER}
//println "BRANCH_NAME = " + ${BRANCH_NAME}
//println "BUILD_NUMBER = " + $BUILD_NUMBER
//println "BRANCH_NAME = " + $BRANCH_NAME
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/fc96eb59-c472-4ce2-8a44-d6f0b0b7308c%40googlegroups.com?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAGNFQYX_p_PoMMav9r2%3DL29YWvMsq3vj6M6bg%2BFPPyBrkw0f7A%40mail.gmail.com?hl=en.
Hi Parag. Sounds great. Go for it and submit the PR. Thanks very much for your input.
Kind regards, Andrew
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/c3e7c972-9601-4e4a-a263-8d434e2a2be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
binding.variables
. Build
parameters are exposed as environment variables in Jenkins and
environment variables are available as variables in DSL scripts, see https://github.com/jenkinsci/job-dsl-plugin/wiki/User-Power-Moves#access-the-jenkins-environment-variables.To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/7e72818f-ecc1-4653-b2cf-7580c1fac8a7%40googlegroups.com.
All build environment variable are available in the script, including JOB_URL. See
https://github.com/jenkinsci/job-dsl-plugin/wiki/User-Power-Moves#access-the-jenkins-environment-variables
Apparent variable 'BUILD_URL' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes: You attempted to reference a variable in the binding or an instance variable from a static context. You misspelled a classname or statically imported field. Please check the spelling. You attempted to use a method 'BUILD_URL' but left out brackets in a place not allowed by the grammar.
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/757281ef-6449-40c4-b1e4-99cb11263fd6%40googlegroups.com.