Integrate[ 
      Cos[ alpha (t - tau)] Exp[-tau] (1 - 
            Exp[-tau]), 
{tau,  0,  t}]

Simplify[%]