Path: Manage Jenkins --> In-Process Script Approval
Go to this place aprove it for the first time
It will contain below content based on your project
--------------------------------------------------------------
method org.apache.maven.model.Model getPackaging
--------------------------------------------------------------