Make sure following plugins are installed P4 Plugin and Perforce Plugin
Click on credential option and add the credential for perforce:
Updated your perforce credential and click on test and make sure its showing as success as shown in below screenshot:
Go to project configuration tab and choose the below marked Perforce option appropriately to configure the build:
Once properly configure we further add the required build/post build steps under this.