You can also call md5sum.exe from a Windows command prompt:

c:\cygwin\bin\md5sum c:\util\zip.exe
\4ad71344439de59c7bd77fb88eef690c *c:\\util\\zip.exe

Eric

On 3/7/2013 11:54 AM, Slide wrote:
I use Cygwin completely in my builds, I don't try and call cygwin applications from a Windows Batch area, I always use the shell script build step and then set the path to Cygwin's bash in the global configuration. This works just fine for us.


On Thu, Mar 7, 2013 at 9:30 AM, Aris Green <aris.gr...@gmail.com <mailto:aris.gr...@gmail.com>> wrote:

    I've tortured myself several times trying to call Cygwin neatly
    from the Windows CMD shell.  Only to forget how I did it months
    later.  One question... This is very easy to do with a little
    Groovy script.  You could save the script using the Scriptler
    plug-in.  Google "Groovy md5 hash" and you'll see a lot of
    examples.  You can then forget about having to call Cygwin.


    On Wednesday, March 6, 2013 8:11:57 PM UTC-7, zw wrote:

        Hi All

        We have an .exe file under C:\jenkins\workspace\install\app.exe

        We tried using build step a Windows batch command to check the
        files md5sum with

        set PATH=/cygdrive/c/cygwin/bin;$PATH
        /cygdrive/c/cygwin/bin/bash.exe /cygdrive/c/cygwin/bin/md5sum.exe
        /cygdrive/c/jenkins/workspace/job2/app.exe


        But we get
        [job2] $ cmd /c call
        C:\Users\rrr\AppData\Local\Temp\jenkins1634104131808727925.bat

        c:\jenkins\workspace\job2>set PATH=/cygdrive/c/cygwin/bin;$PATH

        c:\jenkins\workspace\job2>/cygdrive/c/cygwin/bin/bash.exe
        /cygdrive/c/cygwin/bin/md5sum.exe
        /cygdrive/c/jenkins/workspace/job2/app.exe
        The system cannot find the path specified.

        How do we get cygwin to run in a job to get app.exe's md5sum ?

        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-users+unsubscr...@googlegroups.com
    <mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
    For more options, visit https://groups.google.com/groups/opt_out.





--
Website: http://earl-of-code.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.
For more options, visit https://groups.google.com/groups/opt_out.



--
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to