setNextRequest() on Jenkins executes API with only first value from Pre-request script

Hi @danny-dainton @kunagpal,

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.

Example:

Pre-request script:

image

Test Script:
image

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.

Thanks