Added parameters closure inside BuildPipelineTrigger

Change-Id: I52ddf5a10977770b935401a256b90716bc3cbaf7