Skip to content

Instantly share code, notes, and snippets.

@koko-rauch
Created May 1, 2017 09:35
Show Gist options
  • Save koko-rauch/9b5824ac5fda2ff35218228baed06a06 to your computer and use it in GitHub Desktop.
Save koko-rauch/9b5824ac5fda2ff35218228baed06a06 to your computer and use it in GitHub Desktop.
def prepareTests(){
def myMap = [ 'test1' : params.runTest1, 'test2' : params.runTest2 ]
def testsToRun = []
for (test in myMap) {
if (test.value) {
testsToRun.add(test.key)
}
}
return testsToRun
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment