本文主要是介绍20230506-jenkins使用错误记录:Failed to parse POMs java.io.EOFException: unexpected stream termination,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
分散负载应用:警告,不影响执行
jenkins错误
错误日志
$ /usr/lib/jvm/java-8-openjdk-amd64//bin/java -cp /home/jenkins/workspace/maven35-agent.jar:/home/jenkins/soft/apache-maven-3.8.6/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/soft/apache-maven-3.8.6/conf/logging jenkins.maven3.agent.Maven35Main /home/jenkins/soft/apache-maven-3.8.6 /home/jenkins/agent/agent.jar /home/jenkins/workspace/maven35-interceptor.jar /home/jenkins/workspace/maven3-interceptor-commons.jar 46491 Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:425) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:136) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:66)
ERROR: Failed to parse POMs java.io.EOFException: unexpected stream termination at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:459) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:404) at hudson.slaves.Channels.forProcess(Channels.java:121) at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:296) at hudson.maven.ProcessCache.get(ProcessCache.java:236) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1900) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)
解决办法:构建选择jdk11
执行脚本错:Pseudo-terminal will not be allocated because stdin is not a terminal.
- 不影响脚本执行,可以通过-tt参数去除该提示
脚本记录:部署远程机器(上传、重启)
sshpass -p 'dolphinscheduler123' scp -q -o StrictHostKeyChecking=no $WORKSPACE/dolphinscheduler-api/target/dolphinscheduler-api-2.0.5-SNAPSHOT.jar dolphinscheduler@192.168.38.10:/home/dolphinscheduler/app/dolphinscheduler/lib/dolphinscheduler-api-2.0.5-SNAPSHOT.jar
echo "后端服务上传成功!"
sshpass -p 'dolphinscheduler123' ssh -tt dolphinscheduler@192.168.38.10 << EOF
echo '登录成功!准备执行命令'
cd /home/dolphinscheduler/app/dolphinscheduler/bin
#停服务
sh dolphinscheduler-daemon.sh stop api-server && echo '后端服务停止成功!'
#启动服务
sh dolphinscheduler-daemon.sh start api-server
echo "后端服务启动成功"
exit
EOF
这篇关于20230506-jenkins使用错误记录:Failed to parse POMs java.io.EOFException: unexpected stream termination的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!