Whenever any inspector or other person reports a violation of any such rules and regulations for plumbing and drainage, or a deviation from any officially approved plan or specification for plumbing and drainage filed with any board or department, the appointing power shall first serve a notice of the violation thereof upon the master plumber doing the work, if a registered plumber.