Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23521

Build breaks if job name contains space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • rvm-plugin
    • None
    • Jenkins 1.563

      The build fails when trying to execute rvm-installer if the job name contains a space:

      Building in workspace /var/lib/jenkins/workspace/RVM test
      Capturing environment variables produced by 'rvm use 2.0.0-p247'
      $ bash -c export
      $ bash -c "test -f ~/.rvm/scripts/rvm"
      $ bash -c "test -f /usr/local/rvm/scripts/rvm"
      Installing RVM
      $ /var/lib/jenkins/workspace/RVM test/rvm-installer
      FATAL: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory
      java.io.IOException: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
      	at hudson.Proc$LocalProc.<init>(Proc.java:244)
      	at hudson.Proc$LocalProc.<init>(Proc.java:216)
      	at hudson.Launcher$LocalLauncher.launch(Launcher.java:775)
      	at hudson.Launcher$ProcStarter.start(Launcher.java:355)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440)
      	at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304)
      	at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52)
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)
      	at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)
      	at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
      	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202)
      	at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:41)
      	at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
      	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
      	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
      	at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      	at org.jruby.ast.IfNode.interpret(IfNode.java:116)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:268)
      	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:220)
      	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:366)
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:238)
      	at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)
      	at org.jruby.ast.RescueNode.interpret(RescueNode.java:119)
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
      	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126)
      	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
      	at org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224)
      	at org.jruby.proxy.hudson.tasks.BuildWrapper$Proxy2.setUp(Unknown Source)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:153)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
      	at hudson.model.Run.execute(Run.java:1706)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
      	at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
      	at java.lang.ProcessImpl.start(ProcessImpl.java:81)
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
      	... 56 more
      

            Unassigned Unassigned
            dserodio Daniel Serodio
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: