The Yankees have signed Juan Rivera, according to a source.

The contract is a minor league deal that will allow Rivera to compete with Matt Diaz and Russ Canzler to be a right-handed-hitting outfielder for the Yankees.

In 109 games with the Dodgers in 2012, Rivera hit .244 with nine homers and 47 RBIs.