Milwaukee Brewers' Jonathan Lucroy scores on a hit by Aramis Ramirez as Cincinnati Reds catcher Devin Mesoraco catches the ball in the first inning of a baseball game, Saturday, July 5, 2014, in Cincinnati. (AP Photo/Al Behrman)

Oakland Athletics' Jeff Samardzija, center, speaks with pitcher Sonny Gray, right, in the fourth inning of a baseball game against the Toronto Blue Jays on Saturday, July 5, 2014, in Oakland, Calif. Samardzija was acquired in a trade from the Chicago Cubs. At left is A's Alberto Callaspo. (AP Photo/Ben Margot)

Milwaukee Brewers' Jonathan Lucroy scores on a hit by Aramis Ramirez as Cincinnati Reds catcher Devin Mesoraco catches the ball in the first inning of a baseball game, Saturday, July 5, 2014, in Cincinnati. (AP Photo/Al Behrman)

Oakland Athletics' Jeff Samardzija, center, speaks with pitcher Sonny Gray, right, in the fourth inning of a baseball game against the Toronto Blue Jays on Saturday, July 5, 2014, in Oakland, Calif. Samardzija was acquired in a trade from the Chicago Cubs. At left is A's Alberto Callaspo. (AP Photo/Ben Margot)

NEW YORK — The trade that put Jeff Samardzija on a postseason contender cost him a chance to pitch in his first All-Star Game.

A day after Samardzija was dealt from the Chicago Cubs to Oakland, a big league-high six Athletics were picked Sunday for the game at Target Field in Minnesota on July 15.

That doesn’t include Samardzija, selected as a National League All-Star. Major League Baseball said he is ineligible to play because of the league switch.

The 29-year-old right-hander, who was 2-7 with a 2.83 ERA and 103 strikeouts for the Cubs, won his American League debut Sunday when he allowed one run in seven innings for a 4-2 victory over Toronto. He will be introduced with the NL players before the All-Star Game; still to be decided is whether he wears a Cubs or A’s uniform — or a generic NL jersey.

“I won’t get to pitch, which is a bummer, but that’s all right,” Samardzija said. “I’ll just go through whatever ceremonies they have and just jump over to the AL dugout with an NL jersey on and have some fun with the six other dudes we have over there.”

Oakland, with the best record in the majors, has its most All-Stars since 1975: left-handers Sean Doolittle and Scott Kazmir, catcher Derek Norris, first baseman Brandon Moss, third baseman Josh Donaldson and outfielder Yoenis Cespedes.

Former Louisiana-Lafayette standout Jonathan Lucroy earned his first All-Star nod as a reserve for the National League. He was edged in the fan vote by St. Louis catcher Yadier Molina but made the team via player balloting. He’s hitting .329 with nine home runs and 44 RBIs.

“It’s one of those things that you kind of hope happens and you get recognized for, and whenever it does happen, it feels good,” Lucroy told MLB.com. “I’m glad that I was able to have this opportunity.”

Yankees shortstop Derek Jeter, playing his 20th and final season, was chosen for his 14th All-Star team and will start for the ninth time. He gets reunited with Seattle second baseman Robinson Cano, his former double-play partner in New York.

Mariano Rivera, the retiring Yankees reliever, was the center of attention at last year’s All-Star game when the Mets hosted in Citi Field.

Jeter could be in the spotlight this year.

“All-Star game was in New York last year. It’s a little bit different,” Jeter said. “I don’t go into it with any expectations. Just trying to enjoy myself and have fun with whoever is here.”

Among the big names bypassed entirely were slugger David Ortiz and closer Koji Uehara from World Series champion Boston, San Francisco catcher Buster Posey and Dodgers pitcher Josh Beckett.

“I had a chance to talk with David, and he felt the four days of rest might be more advantageous to him,” said Boston skipper John Farrell, the AL manager. “He was a pro about it.”

Also elected by fans to start for the AL were Detroit first baseman Miguel Cabrera, Donaldson and outfielders Jose Bautista of Toronto, Adam Jones of Baltimore and Mike Trout of the Los Angeles Angels.

Baltimore’s Matt Wieters, sidelined by season-ending elbow surgery on June 17, was elected to start at catcher and will be replaced by Kansas City’s Salvador Perez.

Orioles bopper Nelson Cruz, tied for the major league home run lead with 27, was voted in by fans at designated hitter after serving a 50-game suspension last year for violating baseball’s drug agreement.

Elected to the NL starting lineup were Arizona first baseman Paul Goldschmidt, Philadelphia second baseman Chase Utley, Colorado shortstop Troy Tulowitzki, Milwaukee third baseman Aramis Ramirez and Molina along with outfielders Carlos Gomez of Milwaukee, Andrew McCutchen of Pittsburgh and Yasiel Puig of the Los Angeles Dodgers.

Yankees pitcher Masahiro Tanaka and Chicago White Sox first baseman Jose Abreu, a pair of rookies off to superlative starts, were among 26 first-time All-Stars and 24 foreign-born players. Tanaka and setup man Dellin Betances are the first Yankees rookie pitchers to be picked as All-Stars since Spec Shea in 1947.

Milwaukee closer Francisco Rodriguez made his fifth All-Star team, his first since 2009.

Bautista, at 5.68 million, received the most votes for the second time in four years. Tulowitzki topped the NL at 5.35 million.

Other players omitted despite strong credentials were Cincinnati pitcher Alfredo Simon, Seattle third baseman Kyle Seager and San Diego closer Huston Street, who had converted 23 consecutive save chances before allowing a tying home run in the ninth Saturday.

Milwaukee outfielder Ryan Braun and Toronto outfielder Melky Cabrera, who like Cruz served lengthy drug-related suspensions, also were left out.

The candidates in online voting for the final American League spot are all pitchers: Houston’s Dallas Keuchel, Cleveland’s Corey Kluber, Los Angeles’ Garrett Richards, Detroit’s Rick Porcello and Chicago’s Chris Sale.

Vying for the National League spot are Miami third baseman Casey McGehee, Colorado first baseman Justin Morneau, Washington third baseman Anthony Rendon, Cubs first baseman Anthony Rizzo and Atlanta outfielder Justin Upton.