 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.