Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.
Hi All,
I am new to postman and working on the scenario to upload file with api and run through jenkins. We are using the bit bucket as repositories and using the newman api options to run the postman collection. Please find the below newman code:
await postman({
collection: [url to postmanCollection],
environment: [postmanEnvironment],
iterationData: [url to postmanDataFile],
reporters: [‘cli’, ‘json’, ‘htmlextra’],
reporter: {
json: {
export: results.json
},
htmlextra: {
export: results.html
}
}
if we are placing the files in git repo (same as the collection json file), I am getting the 500 response.
Collection.json screenshot:
Response screenshot:
Can anyone please let me know what can I do to run the file upload scenario through Jenkins. can we set url as workingDir option in newman command ?
Note: we are using the newman api options to run the collection. so how can we set the workingDir option as url.

