https://www.browserstack.com/app-automate/appium/jenkins#app-upload-config
The BrowserStack Local Plugin for Jenkins implicitly sets the hashed id for the uploaded application as BROWSERSTACK_APP_ID.
You just need to add the correct BrowserStack credentials in your test suite and run the test. Please refer the link here to configure credentials with Jenkins:
https://www.browserstack.com/app-automate/appium/jenkins#local-config