Move the jenkins job triggering to its own function
This commit move the code use to trigger a
jenkins build to its own function.
This is done so that it will be easier to make
triggering a jenkins job more generic ie
not only on PRs.
Signed-off-by: Clement Verna <cverna@tutanota.com>