We consider the effect of classical stochastic noise on control laser pulses used in a scheme for transferring quantum information between atoms, or quantum dots, in separate optical cavities via an optical connection between cavities. We develop a master equation for the dynamics of the system subject to stochastic errors in the laser pulses, and use this to evaluate the sensitivity of the transfer process to stochastic pulse shape errors for a number of different pulse shapes. We show that under certain conditions, the sensitivity of the transfer to the noise depends on the pulse shape, and develop a method for determining a pulse shape that is minimally sensitive to specific errors.