Groovy web console

subscribe to the feed Subscribe
to this
site

tmp

Published 3 months ago by tmp
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
jdkVersion11 = 'jdk11'
def getJdk(branch) {
    if (branch == 'master')
        jdkVersion11
    'jdk8'
}

println(getJdk('master'))