slice the pineapple into 1/2-inch slices and cut the cores out of the slices. pin the slices onto the ham with toothpicks. bake ham in the preheated oven until a meat thermometer inserted into the thickest part of the ham reads 140 degrees f (60 degrees c), 1 1/2 to 2 hours.