See Jenkins Upgrade Issue - #2 by MarkEWaite for a step-by-step guide on how to obtain a new agent.jar