I have a Jenkins job that clones the repository from GitHub, then runs the Execute Shell script with the help of newman command contains collection and Environment JSON file.
after that from the collection some of the services are working fine.
But the file upload-related services are failing.
The error is displayed as File load error: <“file name”>, no such file
Hello @dduportal thanks for your response.
The below activities are I have done:-
I haven’t created any Jenkins files.
Now I’m running my Jenkins job through a freestyle project.
In Postman I have created a collection and in that collection having nearly
70 services and those services run through chaining requests that I have created one global environment with different variables and those variables I’m passing where I have required.
Now in postman there are some services where I have to upload CSV data files.
So in postman now I had uploaded the CSV files from the from-data option. In postman and in Newman all services are working fine.
Now I have to run my collection on Jenkins for My collection and environment JSON files exported into the local repo then I pushed my local repo on GitHub.
Now I have created one freestyle project on Jenkins. In that project
I have put my Github URL and added my credentials after that I have build steps
where I’m using the execute Shell there I’m using the Newman command with the help of
collection JSON and Environment JSON path.
But after running the Jenkins job there are some services filed where
I have to upload CSV data files so there I’m getting the File Load Error: no such file.
So my question is how to upload my CSV data files into that service.