Groovy web console

subscribe to the feed Subscribe
to this
site

wtf

Published 3 weeks ago by brent
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String getJobProfileToRunTests(sourceBuildName) {
    def returnedValue = 'messagingAll'
    if(sourceBuildName.contains('smooch')){
        returnedValue = 'messagingSmooch'
    } else if (sourceBuildName.contains('facebook')){
        returnedValue = 'messagingFacebook'
    }
    print("Selected ${returnedValue} for source build ${sourceBuildName}")
    return returnedValue;
}

getJobProfileToRunTests("build-messaging-connector-smooch")