The method Jenkins.getInstance() is deprecated, and the recommendation is to use the get method instead.