The Yankees released Underwood from this minor-league contract Tuesday, Gary Phillips of the New York Daily News reports.
The Yankees reassigned Underwood to minor-league camp Wednesday.
Underwood signed a minor-league contract with the Yankees on Thursday and received an invitation to major-league spring training, Jon Heyman of the New York Post reports.
Underwood cleared waivers and accepted his outright assignment to Triple-A Indianapolis on Friday, Jason Mackey of the Pittsburgh Post-Gazette reports.
Underwood was designated for assignment by the Pirates on Saturday, Alex Stumpf of DKPittsburghSports.com reports.
Underwood (forearm) struck out two and gave up one run on two hits over two innings of relief in Tuesday's 6-1 loss to the Rangers.
Underwood gave up a hit in a scoreless ninth inning Wednesday to record his first save of the season in a 4-1 win over the Red Sox.
Underwood signed a one-year, $1.025 million contract with the Pirates on Friday, avoiding arbitration, Rob Biertempfel of The Athletic reports.
Underwood walked one in a scoreless ninth inning during the second game of Tuesday's doubleheader to record his first save of the season in a 1-0 win over the Reds.