Groovy web console

subscribe to the feed Subscribe
to this
site

ex1

Published 1 month ago by mao
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
[
                    [ 'GERRIT_BRANCH', 'GERRIT_BRANCH' ],
                    [ 'GERRIT_CHANGE_NUMBER', 'params.GERRIT_CHANGE_NUMBER' ],
                    [ 'GERRIT_CHANGE_ID', 'params.GERRIT_CHANGE_ID' ],
                    [ 'GERRIT_PATCHSET_NUMBER', 'params.GERRIT_PATCHSET_NUMBER' ],
                    [ 'GERRIT_PATCHSET_REVISION', 'params.GERRIT_PATCHSET_REVISION' ],
                    [ 'GERRIT_REFSPEC', 'params.GERRIT_REFSPEC' ],
                    [ 'GERRIT_PROJECT', 'params.GERRIT_PROJECT' ],
                    [ 'GERRIT_EVENT_TYPE', 'params.GERRIT_EVENT_TYPE' ],
]
.collect { key, value ->
    "$key=$value"
}
.join('\\&')