Created
April 18, 2019 05:54
-
-
Save Opalo/45b6ae9db723ad65c128e7b9b67c78eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def input = "Application!01.01.01 TestSuite1,TestSuite2,TestSuite3,TestSuite4 Product!01.01.01,Product2!01.01.02" | |
def groups = input.split(' ') | |
def applications = groups[0].split(',').collect { it.split('!') }.collectEntries { [(it[0]):it[1]] } | |
def suites = groups[1].split(',') | |
def products = groups[2].split(',').collect { it.split('!') }.collectEntries { [(it[0]):it[1]] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment