Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Groovy #446

Open
xdelaruelle opened this issue Feb 22, 2022 · 1 comment
Open

Support for Groovy #446

xdelaruelle opened this issue Feb 22, 2022 · 1 comment

Comments

@xdelaruelle
Copy link
Member

Groovy language seems used in system like Jenkins to interact with user environment.

It could be interesting to add support for such language on Modules.

Groovy has capabilities to dynamically evaluate code and interact with user environment: http://groovy-lang.org/integrating.html

Need to check if a generic Groovy support could be made, or if there should be a support for each DSL derivated from Groovy.

@nanobowers
Copy link
Contributor

First, I am not a Groovy expert, but I was intrigued by this enough to do a little research.
It is not obvious to me if a generic Groovy support is possible. There is a System.getenv() to get system environment variables, but there is no System.setenv() to set them. There appear to be some workarounds, but they look more involved than setting environment variables in any other scripting languages I know of.

It appears Jenkins itself has some DSL that allows setting environment variables that is separate what is available in native Groovy, but that seems like a very specific use model and possibly hard to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants