Hi,

Does anyone have any experience getting Unix scripts to run on Win2008
with Cygwin from a Jenkins job?

I'm trying to get Mustella to run as a Jenkins job so we can schedule
it to run once or twice a day and report back via email. Seemed easy
enough, but reality turned out to be a bit tougher...

This is how far I can get it to run, on a machine where I can run
Mustella in Cygwin successfully:

<log>
Started by user anonymous
Building in workspace C:\Program Files (x86)\Jenkins\workspace\flex-sdk_mustella
Checkout:flex-sdk_mustella / C:\Program Files
(x86)\Jenkins\workspace\flex-sdk_mustella -
hudson.remoting.LocalChannel@b52f79
Using strategy: Default
Last Built Revision: Revision ae21a371ed69587c2ffba95b0b1a4b5bf10463e6
(origin/develop)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Commencing build of Revision ae21a371ed69587c2ffba95b0b1a4b5bf10463e6
(origin/develop)
Checking out Revision ae21a371ed69587c2ffba95b0b1a4b5bf10463e6 (origin/develop)
[flex-sdk_mustella] $ sh -xe C:\Windows\TEMP\hudson2579720954974176906.sh
cygwin warning:
  MS-DOS style path detected: C:\Windows\TEMP\hudson2579720954974176906.sh
  Preferred POSIX equivalent is:
/cygdrive/c/Windows/TEMP/hudson2579720954974176906.sh
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
+ export SHELLOPTS
+ set -o igncr
+ cd C:/ApacheFlex/git/flex-sdk/mustella
+ ls -la
total 4701
drwx------+ 1 Administrators None       0 May 27 02:21 .
drwx------+ 1 Administrators None       0 May 24 13:26 ..
-rwx------+ 1 Administrators None     169 May 23 11:26 .gitignore
drwx------+ 1 Administrators None       0 May 23 11:22 Assets
-rwx------+ 1 Administrators None    3325 May 23 12:48
MustellaResultsParser.class
-rwx------+ 1 Administrators None    5228 May 23 11:22
MustellaResultsParser.java
-rwx------+ 1 Administrators None    2674 May 23 11:26 README
drwx------+ 1 Administrators None       0 May 23 11:22 as3
drwxr-xr-x+ 1 ApacheFlex     None       0 May 23 14:44 build
-rwx------+ 1 Administrators None  124906 May 23 11:26 build.xml
drwx------+ 1 ApacheFlex     None       0 May 23 14:45 classes
-rwx------+ 1 Administrators None    2043 May 23 11:22 clobber.awk
-rwx------+ 1 ApacheFlex     None   13650 May 27 02:21 failures.txt
drwx------+ 1 Administrators None       0 May 23 11:22 java
-rwx------+ 1 Administrators None   12847 May 23 11:26 local-template.properties
-rwx------+ 1 Administrators None   38032 May 23 11:26 mini_run.sh
-rwx------+ 1 Administrators None   88490 May 23 12:48 mustella.swc
drwx------+ 1 Administrators None       0 May 27 15:30 properties
-rwx------+ 1 ApacheFlex     None 3952987 May 27 02:21 results.txt
drwx------+ 1 Administrators None       0 May 23 11:22 scripts
-rwx------+ 1 Administrators None    1554 May 23 11:26 test_changes.sh
-rwx------+ 1 ApacheFlex     None  516680 May 26 17:57 test_files.tmp
drwx------+ 1 Administrators None       0 May 23 11:26 tests
drwx------+ 1 ApacheFlex     None       0 May 26 17:37 tmp
drwx------+ 1 Administrators None       0 May 23 11:26 utilities
+ ./mini_run.sh tests/components/Label
+ '[' 1 -lt 1 ']'
+ '[' 'C:\Program Files (x86)\apache-ant-1.9.1' = '' ']'
+ propfile=properties/mustella_tmp.properties
+ inherit_propfile=properties/mustella1.properties
+ changes=0
+ hurricane=0
+ use_wire=true
+ propfileName=mustella_tmp
+ newFile=
+ cleanFile=
+ testName=
+ seenFile=
+ run_one_file=
+ skipcheck=1
+ skipexclude=false
+ imageDiff=0
+ sniffers=0
+ createImages=0
+ timeout=12000
+ smoke=
+ print_passes=true
+ run_all=0
+ ant_target=run
+ browser_run=
+ apollo_run=
+ exit_on_compile_error=true
+ extra_arg=
+ port=9999
+ keep=false
+ find_our_own_files=false
+ failed_only=0
+ no_run=0
+ beliteral=0
+ '[' -f local.properties ']'
++ uname -s
++ tr '[A-Z]' '[a-z]'
+ os=cygwin_nt-6.1-wow64
++ echo cygwin_nt-6.1-wow64
++ egrep cygwin
+ tmp=cygwin_nt-6.1-wow64
+ '[' cygwin_nt-6.1-wow64 = '' ']'
+ tmp=c:/tmp
+ mkdir c:/tmp
Build step 'Execute shell' marked build as failure
Finished: FAILURE
</log>

Help?

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to