-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Continuous Integration
-
Tags:
-
Upgrade notes:
-
Sprint:DevOps-21
Steps to reproduce:
- create a test&push job from template http://qa.nuxeo.org/jenkins/job/template_ondemand/
- set it up to use maven 2.2.1
- launch tests on 5.8 branch (5.8 as merge branch too)
=> 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