如何解决詹金斯中的空指针异常问题

时间:2019-04-03 08:01:36

标签: maven jenkins jenkins-plugins

我正在运行jenkins构建作业,该作业从git中获取代码并构建工件 但我遇到以下错误

 Waiting for Jenkins to finish collecting data
 ERROR: Asynchronous execution failure
 java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at hudson.remoting.Channel$2.adapt(Channel.java:992)
    at hudson.remoting.Channel$2.adapt(Channel.java:986)
    at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
    at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:146)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException

0 个答案:

没有答案