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