Groovy web console

subscribe to the feed Subscribe
to this
site

xx

Published 1 month ago by xxa
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String custdep = "bnhus2"
String domain = "blabla.com"
String host = custdep in ["stgus1", "bnhus2"] ? "${custdep}.${domain}" : "${custdep}-bastion.${domain}"