Having previous played for St. Kevin's Boys, Gilmartin joined English League One side Walsall in the summer of 2005. He made his Walsall debut on 17 September 2005 in a 3–2 home defeat to Chesterfield, and played two further first-team matches that season. He also made his international debut for Republic of Ireland under-19s in February 2006. At the end of the 2005–06 season, Gilmartin's contract was extended, with Walsall taking up one-year option. After signing, Gilmartin said he expected to fight for the first choice goalkeeper ahead of a new season. Gilmartin did not feature for Walsall over the next two seasons, but played for Republic of Ireland under-21s in 2007, and completed his UEFA B coaching licence in April 2008. During 2007, he joined Worcester City and Hednesford Town, in order to gain first team experience. In May 2008 Gilmartin signed another new 12-month contract. During the 2008–09 season, in which he made 12 appearances, Gilmartin said he would consider leaving the club if first choice goalkeeper Clayton Ince stayed on. Ultimately, he signed another new 12-month contract at the end of the season. In the 2009–10 season, Gilmartin replaced Ince as a first choice goalkeeper. He credited the club's goalkeeping coach, Mick Kearns, for helping him improve as a player. In October 2009, he suffered an hamstring injury that would keep him out for three to four weeks. Despite the injury, Gilmartin played 24 times in 2009–10 season. Gilmartin was offered a new contract by Walsall on 10 May 2010, but joined Championship side Watford on 1 July 2010. He made his debut in a League Cup first round tie away to Aldershot Town, keeping a clean sheet in a 3–0 Watford win. Gilmartin struggled to displace Scott Loach as Watford's goalkeeper during the 2010–11 season, but did play in all four of the club's cup games. He also won the club's community ambassador prize at the end of season awards. Gilmartin displaced Loach to make his full league debut on 27 September 2011, in a 2–1 home victory over Millwall. He started the following game, a 3–0 defeat at Southampton, before Loach returned to the side. On 23 November 2011, Gilmartin was sent out on loan to League One side Yeovil Town until 3 January 2012. He returned to Watford on 19 January 2012, having made eight appearances for Yeovil. In February 2012 he joined League Two side Crawley Town on loan as back up to Michael Kuipers, following an injury to Scott Shearer. On 3 May 2012, Gilmartin was one of four players to be released by Watford after their contracts expired. Gilmartin signed a two-year contract with League Two side Plymouth Argyle in July 2012, and made 16 appearances in all competitions. He was transfer-listed by manager John Sheridan at the end of the 2012–13 season, and left the club by mutual consent in June 2013. Gilmartin returned to Dublin in July, having signed an 18-month contract with League of Ireland side St Patrick's Athletic. He made his Pats' debut later that month in a Dublin derby at Shamrock Rovers in the League of Ireland Cup. He made his league debut the following season, on 2 June 2014 against Drogheda United, when he came on as a half-time substitute for the injured Brendan Clarke. He continued Clarke's work and kept a clean sheet as Pats won 6–0. In total, he made 10 appearances for the Pats, with nine coming in cup competitions. Gilmartin returned to English football by re-signing with Watford on a one-year deal on 25 August2014 as a back-up to Heurelho Gomes and Jonathan Bond, two years after he first left the club. He signed a new two-year contract in June 2015 as the club approached their first season back in the Premier League. Alongside his playing career with Watford he commentates on the club's away games for BBC Three Counties Radio, is taking further coaching qualifications and has taken training sessions for the club's academy. He left Watford at the end of the 2016–17 season. Following his release from Watford, Gilmartin signed for League Two club Colchester United as a player-coach. He made his debut for Colchester in the EFL Trophy against Reading U23 on 29 August. Gilmartin rejected the offer of a new contract in July 2019 and signed for Championship club Bristol City as a player with some Junior Coaching responsibilities. On 7 November 2019, it was announced that he had taken up a role as goalkeeping coach for the Republic of Ireland under-21s under their new manager Stephen Kenny.