Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-890

Fix JDK_PATH parameter in test&push templates

    XMLWordPrintable

    Details

    • Tags:
    • Upgrade notes:
      Hide

      Removed the JDK_PATH parameter

      Show
      Removed the JDK_PATH parameter
    • Sprint:
      DevOps-21

      Description

      Steps to reproduce:

      => build ends up with following error:

      09:39:52 [ondemand-testandpush-atchertchian3] $ /opt/build/tools/maven2/bin/mvn -DPUSH_IF_SUCCEED=false -DPARENT_BRANCH=5.8 -DMVN_TARGETS=install -DSlave=ondemand -DJDK_PATH= -DMERGE_BEFORE_BUILD=true "-DMVN_ADDITIONAL_OPTS=-fae -nsu -Dnuxeo.tests.random.mode=bypass -Dskip.surefire.tests=true " -DCLEAN=true -DMVN_ADDITIONAL_OPTS2=-fae -DPROFILES=-Pqa -DBRANCH=5.8 -Dmaven.repo.local=/opt/jenkins/workspace/ondemand-testandpush-atchertchian3/.repository install -Paddons -Pqa -fae -nsu -Dnuxeo.tests.random.mode=bypass -Dskip.surefire.tests=true
      09:39:53 ---------------------------------------------------
      09:39:53 constituent[0]: file:/opt/build/tools/maven2/lib/maven-2.2.1-uber.jar
      09:39:53 ---------------------------------------------------
      09:39:53 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      09:39:53 	at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:173)
      09:39:53 	at java.lang.StringBuffer.setLength(StringBuffer.java:170)
      09:39:53 	at org.apache.maven.cli.CLIManager.cleanArgs(CLIManager.java:271)
      09:39:53 	at org.apache.maven.cli.CLIManager.parse(CLIManager.java:224)
      09:39:53 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:119)
      09:39:53 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      09:39:53 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:39:53 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      09:39:53 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      09:39:53 	at java.lang.reflect.Method.invoke(Method.java:606)
      09:39:53 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      09:39:53 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      09:39:53 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      09:39:53 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      09:39:53 Build step 'Invoke top-level Maven targets' marked build as failure
      

      see http://qa.nuxeo.org/jenkins/job/ondemand-testandpush-atchertchian3/94/

      Problem not reproduced on an old job running 2.2.1: http://qa.nuxeo.org/jenkins/job/ondemand-testandpush-atchertchian-aws-oneshot/115

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: