Before issuing a permit, the building official may examine or cause to be examined any building or structure, or electrical, gas, mechanical or plumbing systems for which an application has been received for a permit to enlarge, alter, repair, move, demolish, install, or change the occupancy. He or she shall inspect all buildings and structures, and all electrical, gas, mechanical and plumbing systems, from time to time, during work and upon completion. He or she shall make a record of every such examination and inspection and of all violations of the technical codes.