WORKSPACE variable is not present in the Groovy script enviroment

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Writing a groovy script in this plugin I notice that the variable WORKSPACE is not avaiable to the goovy script neither in binding.variable nor in System.getenv()

      Debugging a lot I found that for some reason WORKSPACE variable is set after execution of groovy script and became avaiable for the other kind of variable injection:

      • Properties File Path
      • Properties Content
        and I've found no war to access neither by currentJob nor by currentRun

      So please set variable before run the groovy script.

            Assignee:
            Unassigned
            Reporter:
            Nikolas Falco
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: