Community
Participate
Working Groups
This request is related to the issues in bug 377670. I know there are plenty of choices for "wget" and "unzip" for windows (I use cygwin) but do not know about the mac. If you know of alternatives, or built in methods, that would be fine. (but, would be kind of nice to do it exactly same way on all machines). What'd I'd like to do, to "bootstrap" a testing run, is issue the command: wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip && unzip master.zip -d org.eclipse.releng.eclipsebuilder And then things would be "just like before", but no git repository created. I guess if nothing is handy for the mac, I could continue to do it and linux as I have been (removing whole repo, and re-cloning) This is the response I get fro windows machine: c:\hb\workspace\JUnit-win>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip && unzip master.zip -d org.eclipse.releng.eclipsebuilder 'wget' is not recognized as an internal or external command, operable program or batch file. mac was similar: Building remotely on mac-tests [eclipse-JUnit-mac] $ /bin/sh -xe /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson7780816596583274315.sh + wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson7780816596583274315.sh: line 2: wget: command not found Recording test results But, again, windows is the important one.
I've installed wget on the Windows slave(Zip was already installed). I also build it for the Mac slave, so you should be all set. -M.
If we keep installing all these OSS tools on the Windows slave, maybe, just maybe, will it feel like a Linux slave?
Looks like it didn't "take" ... was it added to the path?
Meant to give error. c:\hb\workspace\JUnit-win2>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip && unzip master.zip -d org.eclipse.releng.eclipsebuilder 'wget' is not recognized as an internal or external command, operable program or batch file.
As the hudson user in a command window: C:\Users\HUDSONBUILD>wget SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc wget: missing URL Usage: wget [OPTION]... [URL]... Try `wget --help' for more options. C:\Users\HUDSONBUILD> -M.
Probably need to restart the Hudson slave for the new environment to take effect.
I just did that. -M.
You may be right, about the restart. Just so Hudson "knows" about its environmnet. I got similar error on the Mac: [eclipse-JUnit-mac2] $ /bin/sh -xe /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson2427708226802150861.sh + wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson2427708226802150861.sh: line 2: wget: command not found
Yep, working on windows now .. I'm so excited ... using git without using git :) c:\hb\workspace\JUnit-win2>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip && unzip master.zip -d org.eclipse.releng.eclipsebuilder SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc --2012-05-09 15:15:49-- http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip Resolving proxy.eclipse.org... 206.191.52.57 Connecting to proxy.eclipse.org|206.191.52.57|:9898... connected. Proxy request sent, awaiting response... 200 OK Length: unspecified [application/x-zip] Saving to: `master.zip' 0K .......... .......... .......... .......... .......... 4.09M 50K .......... .......... .......... .......... .......... 236M 100K .......... .......... .......... .......... .......... 29.0M 150K .......... .......... .......... .......... .......... 6.81M 200K .......... .......... .......... .......... .......... 7.48M 250K .......... .......... .......... .......... .......... 7.13M 300K .......... .......... .......... .......... .......... 6.99M 350K .......... .......... .......... .......... .......... 7.09M 400K .......... .......... .......... .......... .......... 7.57M 450K .......... .......... .......... 7.48M=0.06s 2012-05-09 15:15:49 (8.00 MB/s) - `master.zip' saved [491704]
I still get "command not found" on the mac, so suspect Hudson needs to be restarted there, as well.
Odd, I restarted the slave just before the windows slave restart. But it looks like it wasn't correctly updating it's path info. -M.
(In reply to comment #11) > Odd, I restarted the slave just before the windows slave restart. But it looks > like it wasn't correctly updating it's path info. > > -M. Confirmed it works now. Much thanks. I like this solution a lot. (In reply to comment #2) > If we keep installing all these OSS tools on the Windows slave, maybe, just > maybe, will it feel like a Linux slave? Well ... rsync comes to mind ... but can't say I really need it right now ... just had to refresh my memory with "xcopy" which will work for now.