Build trigger step implementation.
Added test for the triggered job to survive restart.