Please change this to Jenkins.getInstance().