Skip to content

Support for Groovy #446

Open
Open

Description

@xdelaruelle

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.

Activity

  1. nanobowers commented on Jun 28, 2024

    @nanobowers
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions