Jump to content
groovyPost Forums

groovy to access env variable with dash


Recommended Posts

Hi,

Need help on groovy to access env variable in groovy script .

scenario 

variable svc-host  this is environment variable which i need to call in my groovy script .

if i take it as env.svc-host its not able to get it because of - in between .

any help will be appreciated .

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 18 Guests (See full list)

    There are no registered users currently online

×
×
  • Create New...