Unable to upload app via Jenkins Pipeline

When running App-Automate tests on Jenkins, you need to specify the path to the application that is stored on your local machine from where the application is uploaded on BrowserStack. Please refer the App Upload step in the link below:

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: