Newman: Error "newman :command not found" while execute shell script in jenkin Job

Created on 25 Nov 2016  路  7Comments  路  Source: postmanlabs/newman

screen shot 2016-11-25 at 3 39 45 pm

Steps:
1.Started Jenkins on localhost.
2.Create Job-->Select Freestyle project-->Add Build step-->Exceute shell-->Enter "newman run PATH/to/collection -r html,cli"
3.Build now

Result is in attached screenshot.
-->Newman: command not found

newman version: 3.2.0
OS : OSX yosemite 10.10.5
jenkins: 2.19.3

Most helpful comment

Nevermind. I figured it out now.

  1. Go to Jenkins > Configure Jenkins > Search for Environmental Variables
  2. Add the env PATH /usr/local/bin:$PATH newman -v

All 7 comments

Had some issues with PATH
changed to this PATH=/usr/local/bin:$PATH newman -v

That's great @nitinEd, have a good one!

@nitinEd I also replicated the issue you've mentioned here. How did you fixed it? I didn't get how to setup the PATH.. A step for fixing this would really help. Thanks in advance.

Nevermind. I figured it out now.

  1. Go to Jenkins > Configure Jenkins > Search for Environmental Variables
  2. Add the env PATH /usr/local/bin:$PATH newman -v

it works
image

Thanks it works

So much trouble and no clear answers on the web and then i stumbled upon @jltoo comment and solution. Thanks that work like a charm! 馃憤

Was this page helpful?
0 / 5 - 0 ratings