How to get list of env variables from the root folder to jenkins job?
I recommend that you use the printenv command for list system Variable:

printenv


and also An easy way to obtain the Jenkins environment variables list from your local installation is to append env-vars.html to the server's URL. the URL would be 

http://{jenkins_url}/env-vars.html