continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "apache maillist" <apache.maill...@gmail.com>
Subject Re: Continuum 1.0.3 shell script compilation errors
Date Fri, 30 Jun 2006 15:30:13 GMT
The Exit code: 1 is from the shell script:

cd ${buildDir}/checkout/parentPOM
mvn -Dmaven.test.skip clean install
if [ "$?" -ne "0" ]; then
   echo "maven build failed"
   exit 1
fi

I did run the script in 36 directory, and it fails too. The way compilation
would work is using command line to do the following whcih exactly the
same in the shell script:
cd ${buildDir}/checkout/parentPOM
mvn -Dmaven.test.skip clean install
Note: ${buildDir} is /apps/build/R8-continuum-1.0.3
/apps/continuum/working-directory/36

Thanks.

LJ


On 6/30/06, Emmanuel Venisse <emmanuel@venisse.net> wrote:
>
> In your log, I can only see the exit code of your build.sh:
> 158605624 [Thread-2] INFO
> org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell  - Exit
> code: 1
>
> so your shell script return an error, and I don't see compilation errors
> in your logs.
>
> You can run it directly in the '36' directory and test the exit code of
> it.
>
> Emmanuel
>
> apache maillist a écrit :
> > The shell project is under directory 36. directory 46 and 47 are the
> Maven
> > project built hourly. Thanks.
> >
> > LJ
> >
> >
> > 8946 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm  -
> > Checking out project: 'R8 eMember Build', id: '36' to '/apps/build/R8-
> > continuum-1.0.3/apps/continuum/working-directory/36' with branch/tag
> > KPORG_NALA_HEAD_392.
> > 154139344 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsRoot:
> > :pserver:jianglo@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkp
> > 154139344 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > passFile: /home2/wasadm/.cvspass
> > 154139345 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsroot
> > :
> pserver:jianglo@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkpalready
> > exist in /home2/wasadm/.cvspass. SKIPPED.
> > 154139368 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:jianglo@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q checkout -r KPORG_NALA_HEAD_392 -d 36 kpbuild
> > 154139368 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory
> > 154141349 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/build.sh
> > 154141349 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/build.xml
> > 154141349 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/findcompare.pl
> > 154141349 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/flexpub.xml
> > 154141350 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/genSite.sh
> > 154141350 [Thread-2735] DEBUG org.apache.maven.scm.manager.ScmManager  -
> U
> > 36/security.xml
> > 154141351 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Checked out 6 files.
> > 154141388 [Thread-2] INFO
> > org.codehaus.plexus.action.Action:update-project-from-working-directory
>   -
> > Updating project 'R8 eMember Build' from checkout.
> > 154141912 [Thread-2] INFO
> > org.apache.maven.continuum.utils.shell.ShellCommandHelper  - Executing:
> > /usr/bin/sh build.sh deploy
> > 154141912 [Thread-2] INFO
> > org.apache.maven.continuum.utils.shell.ShellCommandHelper  - Working
> > directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/36
> > 157734376 [defaultScheduler_Worker-13] INFO
> > org.apache.maven.continuum.build.settings.SchedulesActivator  -
> >>>>>>>>>>>>>>>>>>>>>>
Executing build job (Hourly Build)...
> > 157735056 [defaultScheduler_Worker-13] INFO
> > org.apache.maven.continuum.Continuum  - Enqueuing
> 'SamlProcessorProperties'
> > (Build definition id=46).
> > 157735056 [defaultScheduler_Worker-13] INFO
> > org.apache.maven.continuum.Continuum  - Enqueuing 'SamlProcessorEJB'
> (Build
> > definition id=47).
> > 158605624 [Thread-2] INFO
> > org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell  -
> Exit
> > code: 1
> > 158605833 [Thread-2] ERROR
> > org.codehaus.plexus.velocity.VelocityComponent  -
> > Left side of '>' operation is not a valid type.  It is a class
> > java.lang.Long. Currently only integers (1,2,3...) and Integer type is
> > supported.
> >
> /org/apache/maven/continuum/notification/mail/templates/shell/BuildComplete.vm
> >
> > [line 25, column 27]
> > 158605835 [Thread-2] INFO
> > org.codehaus.plexus.notification.notifier.Notifier:mail  - Sending
> message:
> >> From '"wasadm" <wasadm@ktazd37.tic.ca.kp.org>'.
> > 158605835 [Thread-2] INFO
> > org.codehaus.plexus.notification.notifier.Notifier:mail  - Recipient: To
> '<
> > nkpbuild@mailman.tic.ca.kp.org>'.
> > 158606837 [Thread-2] ERROR
> > org.codehaus.plexus.velocity.VelocityComponent  -
> > Left side of '>' operation is not a valid type.  It is a class
> > java.lang.Long. Currently only integers (1,2,3...) and Integer type is
> > supported.
> >
> /org/apache/maven/continuum/notification/mail/templates/shell/BuildComplete.vm
> >
> > [line 25, column 27]
> > 158606839 [Thread-2] INFO
> > org.codehaus.plexus.notification.notifier.Notifier:mail  - Sending
> message:
> >> From '"wasadm" <wasadm@ktazd37.tic.ca.kp.org>'.
> > 158606839 [Thread-2] INFO
> > org.codehaus.plexus.notification.notifier.Notifier:mail  - Recipient: To
> '<
> > nkpdev@mailman.tic.ca.kp.org>'.
> > 158607455 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updating project: id: '46', name 'SamlProcessorProperties'.
> > 158607797 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsRoot:
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkp
> > 158607797 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > passFile: /home2/wasadm/.cvspass
> > 158607797 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsroot
> > :
> pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkpalready
> > exist in /home2/wasadm/.cvspass. SKIPPED.
> > 158607798 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q update -d
> > 158607806 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/46
> > 158609685 [Thread-2741] DEBUG org.apache.maven.scm.manager.ScmManager  -
> ?
> > target
> > 158609687 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q log -d '">2006-06-28T08:13:52-0700"'
> > 158609688 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/46
> > 158610013 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updated 1 files.
> > 158610041 [Thread-2] INFO
> > org.apache.maven.continuum.buildcontroller.BuildController  - The
> project
> > was not built because all changes are unknown.
> > 158610139 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updating project: id: '47', name 'SamlProcessorEJB' with branch/tag
> > KPORG_NALA_HEAD_392.
> > 158610481 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsRoot:
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkp
> > 158610481 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > passFile: /home2/wasadm/.cvspass
> > 158610481 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsroot
> > :
> pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkpalready
> > exist in /home2/wasadm/.cvspass. SKIPPED.
> > 158610482 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q update -d -rKPORG_NALA_HEAD_392
> > 158610482 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/47
> > 158612897 [Thread-2747] DEBUG org.apache.maven.scm.manager.ScmManager  -
> ?
> > classes
> > 158612898 [Thread-2747] DEBUG org.apache.maven.scm.manager.ScmManager  -
> ?
> > options
> > 158612898 [Thread-2747] DEBUG org.apache.maven.scm.manager.ScmManager  -
> ?
> > target
> > 158612899 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q log -d '">2006-06-13T15:08:10-0700"'
> > 158612899 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/47
> > 158613230 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updated 3 files.
> > 158613265 [Thread-2] INFO
> > org.apache.maven.continuum.buildcontroller.BuildController  - The
> project
> > was not built because all changes are unknown.
> > 161334363 [defaultScheduler_Worker-7] INFO
> > org.apache.maven.continuum.build.settings.SchedulesActivator  -
> >>>>>>>>>>>>>>>>>>>>>>
Executing build job (Hourly Build)...
> > 161334584 [defaultScheduler_Worker-7] INFO
> > org.apache.maven.continuum.Continuum  - Enqueuing
> 'SamlProcessorProperties'
> > (Build definition id=46).
> > 161334585 [defaultScheduler_Worker-7] INFO
> > org.apache.maven.continuum.Continuum  - Enqueuing 'SamlProcessorEJB'
> (Build
> > definition id=47).
> > 161334670 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updating project: id: '46', name 'SamlProcessorProperties'.
> > 161335038 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsRoot:
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkp
> > 161335038 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > passFile: /home2/wasadm/.cvspass
> > 161335039 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsroot
> > :
> pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkpalready
> > exist in /home2/wasadm/.cvspass. SKIPPED.
> > 161335039 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q update -d
> > 161335039 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/46
> > 161336793 [Thread-2753] DEBUG org.apache.maven.scm.manager.ScmManager  -
> ?
> > target
> > 161336795 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q log -d '">2006-06-28T08:13:52-0700"'
> > 161336795 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/46
> > 161337134 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updated 1 files.
> > 161337268 [Thread-2] INFO
> > org.apache.maven.continuum.buildcontroller.BuildController  - The
> project
> > was not built because all changes are unknown.
> > 161337380 [Thread-2] INFO  org.apache.maven.continuum.scm.ContinuumScm
>   -
> > Updating project: id: '47', name 'SamlProcessorEJB' with branch/tag
> > KPORG_NALA_HEAD_392.
> > 161337909 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsRoot:
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkp
> > 161337909 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > passFile: /home2/wasadm/.cvspass
> > 161337909 [Thread-2] DEBUG org.apache.maven.scm.manager.ScmManager  -
> > cvsroot
> > :
> pserver:liangwe@annd-cvs.annd.ca.kp.org:2401/home/services/cvs/nkpalready
> > exist in /home2/wasadm/.cvspass. SKIPPED.
> > 161337910 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Executing: cvs -z3 -f -d
> > :pserver:liangwe@annd-cvs.annd.ca.kp.org:/home/services/cvs/nkp
> > -q update -d -rKPORG_NALA_HEAD_392
> > 161337910 [Thread-2] INFO  org.apache.maven.scm.manager.ScmManager  -
> > Working directory: /apps/build/R8-continuum-1.0.3
> > /apps/continuum/working-directory/47
> >
> >
> > On 6/30/06, Emmanuel Venisse <emmanuel@venisse.net> wrote:
> >>
> >> Can you attach your logs?
> >>
> >> Emmanuel
> >>
> >> apache maillist a écrit :
> >> > Hi all,
> >> >
> >> > Just want to know if anyone seem this the same problem in 1.0.3.
> >> >
> >> > We have a shell script scheduled to run every midnight. It basically
> >> checks
> >> > out the maven projects from CVS.
> >> > the pom structure we have is like the following:
> >> > parentPOM
> >> > -- modulesPOM
> >> > ---- childproject1
> >> > ---- childproject2
> >> > ---- ......
> >> > ---- ......
> >> >
> >> > childprojects inherent from modulesPOM and modulesPOM inherents from
> >> > parentPOM
> >> >
> >> > After the script checks out all the maven projects, it then runs the
> >> > following:
> >> > cd ${buildDir}/checkout/parentPOM
> >> > mvn -Dmaven.test.skip clean install
> >> >
> >> > However, it happens a lot times now that the Continuum runs the shell
> >> > script
> >> > and reports compilation error on one of the child projects. If i log
> on
> >> to
> >> > the Continuum machine and do the same thing
> >> > cd ${buildDir}/checkout/parentPOM
> >> > mvn -Dmaven.test.skip clean install
> >> >
> >> > and everything compiles!
> >> >
> >> > Does anyone know what could be wrong here?
> >> >
> >> > Thanks.
> >> >
> >> > LJ
> >> >
> >>
> >>
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message