Last active
August 11, 2020 07:50
-
-
Save herrphon/e39a0299b51b79d7025a017e8af23727 to your computer and use it in GitHub Desktop.
Revisions
-
herrphon revised this gist
Aug 11, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ def hash_to_param(myMap) { myMap.collect { k, v -> [$class: 'StringParameterValue', name: k, value: v] } } -
herrphon created this gist
Aug 11, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ def hash_to_param(myMap) { myMap.collect { k, v -> return [$class: 'StringParameterValue', name: k, value: v] } } def map = [ Bob : 42, Alice: 54, Max : 33 ] print(hash_to_param(map))