Running collection in jenkins


I have a environment variable in my collection and while running the collection using newman i am exporting the environment json and collection json and executing it which it works fine. Now i am trying to run the same commands in jenkins locally but its not working fine.

Please guide me how to give environment collection in jenkins

npm install newman
npm install -g newman-reporter-htmlextra
newman run “collectionurl” --reporters=cli,htmlextra