-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Ubuntu 11.04
A call to CLI build with -s, wait for completion will cause NPE if the JOB is already in queue.
pjos@ubuntu:~/tmp$ java -jar jenkins-cli.jar -s http://192.168.0.191:8888/ build Jenkins
pjos@ubuntu:~/tmp$ java -jar jenkins-cli.jar -s http://192.168.0.191:8888/ build Jenkins
pjos@ubuntu:~/tmp$ java -jar jenkins-cli.jar -s http://192.168.0.191:8888/ build Jenkins -s
java.lang.NullPointerException
at hudson.cli.BuildCommand.run(BuildCommand.java:108)
at hudson.cli.CLICommand.main(CLICommand.java:187)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:82)
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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
- is related to
-
JENKINS-16692 NullPointerException building maven project from command line
-
- Closed
-
Spotted the same myself last night but hadn't got around to logging it. It is caused by job.scheduleBuild2 returning null.