The 'dirname' command is used to separate the final directory name from a path. The plugin code must be calling it. Can you execute the same commands interactively on the same node without error? Also, it appears that you may be using the "sh" pipeline command on a Windows node, which is not recommended, and many people have reported problems doing so. Use the "bat" command instead.

Also, I am sending this reply to the Jenkins list, so that others more knowledgeable about the NodeJS plugin may be able to help.

Regards,
Eric


On 10/20/2016 6:14 AM, bolleypally vijay kumar wrote:
Hi Eric Pyle,

Thanks for your help

as you mentioned i installed Cygwin and added to path and able to access all Linux commands in windows cmd now when i run the job error was different '/usr/bin/dirname: missing operand' Please find ATTACHED Screens for more details My question is why dirname command getting invoked when im trying to print npm version

On Tuesday, 18 October 2016 21:24:43 UTC+5:30, Eric Pyle wrote:

    It looks like it's failing because it expects to find bash shell
    commands dirname and uname. Do you have Cygwin or some similar
    package installed to make those commands available?


    On 10/18/2016 11:29 AM, bolleypally vijay kumar wrote:
    1. I'm trying to print node and npm version in a jenkins jobs in
    windows machine

    I dont wan to use Auto install so i gave physical location of
    node folder due to some config problems in widows with NodeJS
    plug in i also done(1. In the windows nodejs install folder add a
    new folder "bin" and copy in the node.exe) but still showing
    command not found for npm
    Please find ATTACHED Screens for more details
    i also found few open issues like
    https://issues.jenkins-ci.org/browse/JENKINS-21953
    <https://issues.jenkins-ci.org/browse/JENKINS-21953>
    https://issues.jenkins-ci.org/browse/JENKINS-26828
    <https://issues.jenkins-ci.org/browse/JENKINS-26828>
    Could you please suggest are the above issues blocking me or is
    there any other look around exist for my problem
    Thanks
    -- You received this message because you are subscribed to the
    Google Groups "Jenkins Users" group. To unsubscribe from this
    group and stop receiving emails from it, send an email to
    jenkinsci-use...@googlegroups.com <javascript:>. To view this
    discussion on the web visit
    
https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com
    
<https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
-- *Eric Pyle *
    Release Engineer
    Lebanon
    +1 603-277-3060 (T)
    +1 603-359-8670 (M)
    ...@cd-adapco.com <javascript:>
    http://www.cd-adapco.com <http://www.cd-adapco.com>

--
*Eric Pyle *
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com <mailto:eric.p...@cd-adapco.com>
http://www.cd-adapco.com <http://www.cd-adapco.com>

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e17641c8-7c55-0849-a12c-d56fe22ccc94%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to