SCOTTSDALE, Ariz. — The San Francisco Giants signed veteran right-hander Trevor Cahill to a minor league contract Wednesday, and Cahill took part in the day's first spring training workout for pitchers and catchers.

Cahill, 31, is on his eighth team in his 12th major league season. He's wearing his sixth different uniform in six seasons, following stints with the Chicago Cubs, San Diego Padres, Kansas City Royals, Oakland Athletics and Los Angeles Angels.

Cahill made his major league debut with the A's in 2009. He's 84-92 in his career with a 4.77 earned run average.

With the Angels in 2019, Cahill went 4-9 with a 5.98 ERA in 37 games with 11 starts. He could compete for the fifth starter role in the Giants rotation, though he's also been an effective reliever over his career.