Weak gravitational lensing analysis pipeline for CFHTLens