Please, I am running into an issue running Newman in Jenkins. I am able to execute my API test on Linux box itself but not on Jenkins. I am getting this error when I try to execute via shell newman: command not found. I also set my environment variables on Jenkins using PATH = /usr/local/bin:$PATH newman -v
I am also getting same error but my Jenkin is in AWS EC2(Linux) , Please help me to resolve this.
In AWS CLI, I have installed node js and newman and could able to run newman commands but when i run same command from Jenkin UI which is present in same AWS EC2, I am getting below error
[Collection_run] $ /bin/sh -xe /tmp/jenkins7542658729538318661.sh + newman -version /tmp/jenkins7542658729538318661.sh: line 2: newman: command not found Build step ‘Execute shell’ marked build as failure Finished: FAILURE