Pontypool were pushed all the way by a defiant Ystrad Rhondda before coming away with the Championship Cup crown.