Unable to download apk file from Jenkins Instance

I am trying to download apk file from the a jenkins instance and i am getting the below error:
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Problem downloading app from url : self signed certificate

you could try to set NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0