Arguments to Groovy Script from Process Job DSLs plugin

582 views
Skip to first unread message

Samuel Lopez

unread,
Sep 1, 2015, 4:54:14 PM9/1/15
to job-dsl-plugin
Hello Folks,

Does any one know if it is possible to pass arguments to the Groovy Script from the  Process JOB DSLs Plugin  in Jenkins.

I am using the  Look on FIesystem  DSL scripts option to call my Groovy scripts

My Jenkins Version is 1.609.1 running on Ubuntu 14.04

Thanks in advance for the help


Daniel Spilker

unread,
Sep 2, 2015, 5:05:17 AM9/2/15
to job-dsl...@googlegroups.com
Hi,

the script has access to all build environment variables, e.g. from build parameters. So you can define build environment variables (e.g. using the EnvInject plugin) to pass parameters to the scripts.

https://github.com/jenkinsci/job-dsl-plugin/wiki/User-Power-Moves#access-the-jenkins-environment-variables

Daniel

--
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/c5b4b0b3-f55e-4c40-837e-602b53fc0b20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages