Call parameter_function prior to creating swift params

This allows to change zuul params with parameter_function before swift
signature is generated.

Swift upload scripts use post form middleware, and that is what the
signature is generated for. We can not change the log path for swift
upload script after the signature was generated.  We want to do this if
we want to customize swift upload log path using parameter_function.

Example scenario: I want to prefix the LOG_PATH with project, so the
projects logs are conveniently grouped together. With this change, all
I need is to add

params[LOG_PATH] = params[ZUUL_PROJECT].split(/)[1] + / + params[LOG_PATH]

to the parameter_function. Alternative approach would require changing
how LOG_PATH is generated initially.

The change has no impact, other than it makes it impossible to access
and modify SWIFT_* parameters from parameter_function:
SWIFT_*_LOGSERVER_PREFIX
SWIFT_*_SIGNATURE
SWIFT_*_URL
SWIFT_*_HMAC_BODY
But it does not make sense to modify them after the signature is
generated.

Change-Id: If3a418fa2d4993a149d454e02a9b26529e4b6825
1 file changed