Last active
August 11, 2020 07:50
-
-
Save herrphon/e39a0299b51b79d7025a017e8af23727 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 hash_to_param(myMap) { | |
myMap.collect { k, v -> [$class: 'StringParameterValue', name: k, value: v] } | |
} | |
def map = [ | |
Bob : 42, | |
Alice: 54, | |
Max : 33 | |
] | |
print(hash_to_param(map)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment