Right-hander Jordan Lyles is headed to the Milwaukee Brewers for the second consecutive season after the club acquired him from the Pittsburgh Pirates on Monday for minor-league right-hander Cody Ponce.

Lyles was 5-7 with a 5.36 ERA over 17 starts for the Pirates this season.

He was 2-4 with a 4.29 ERA in 24 appearances (eight starts) with the San Diego Padres last season before he was claimed off waivers by the Brewers for the stretch drive. At Milwaukee, the former No. 38 overall selection in the 2008 draft was 1-0 with a 3.31 ERA in 11 relief appearances.

Lyles, 28, has a career record of 36-59 with a 5.29 ERA in nine major league seasons, pitching for the Houston Astros (2011-13), Colorado Rockies (2014-17), Padres (2017-18), Brewers and Pirates. Of his 234 career appearances, 132 have been as a starter.