While working on my API collection using postman, in pre-request script I am iterating over different inputs and setting it in environment file.
In test script, I am executing same API multiple times with setNextRequest() based on conditional statement on values saved from pre-request script.
When I execute it using newman command on local through Command line interface, API iterates properly and executes with all three values passed through pre-request script.
However when same collection is integrated in Jenkins and executed using same newman command then API is executed only with first input of pre-request script.
Can you help me solve this issue.