The rebuild plugin now copies the causes of the original build into the new build. Besides the original causes, a UserIdCause is added for the user who started the rebuild action.
A test is added to check that the causes are copied.