Hartley, who started his career with Hamilton and also had spells with Millwall, Raith Rovers, Hibernian and St Johnstone, had been with Celtic since 2007.
The two other quarterfinals will be played on Sunday and see Manchester United take on Chelsea at Old Trafford while Championship sides' Blackburn Rovers and Millwall square up at the Den.