这篇文章主要为大家展示了"立体书3如何安装詹金斯",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"立体书3如何安装詹金斯"这篇文章吧。
wget-q-O-http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add-
sudo sh-c ' echo deb http://pkg.jenkins-ci.org/debian二进制//etc/apt/来源。名单。d/詹金斯。'列表'
sudo apt-get更新sudo apt-get安装詹金斯
詹金斯安装目录是/var/lib/jenkins
启动/关闭
sudo /etc/init.d/jenkins start
sudo /etc/init.d/jenkins停用日志路径为/var/log/jenkins/jenkins.log
jenkins 修改 默认 访问端口
在cubietruck 报 异常爪哇。朗。unsafeliedlinkerror
如:
Java。朗。不满意链接错误: com。星期日jna。本地人。open(Ljava/lang/String;j)
原生开放(原生方法)
atcom。星期日jna。本地图书馆。getinstance(nativelibrary。Java :236)
库$ Handler。init(库。Java :140)
atcom。星期日jna。本地人。LoadLibrary(本机。Java :366)
atcom。星期日jna。本地人。LoadLibrary(本机。Java :351)
atcom。星期日阿库玛。图书馆。clinit(clibrary。Java :89)
atcom。星期日阿库玛。javamarguments。resolve id(javamarguments。Java 3360126)
atcom。星期日阿库玛。javamarguments。oflinux(javamarguments。Java 3360114)
atcom。星期日阿库玛。javamarguments。(javamarguments)的。Java 3360104)
atcom。星期日阿库玛。javamarguments。当前(javamarguments。Java 336092)
atjenkins.diagnosis.HsErrPidList.<init>(HsErrPidList.java:62)
atsun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
atjava.lang.reflect.Constructor.newInstance(Constructor.java:525)
atcom.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
atcom.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
atcom.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
atcom.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
atcom.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
atcom.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
atcom.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
atcom.google.inject.Scopes$1$1.get(Scopes.java:65)
athudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429)
atcom.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
atcom.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
atcom.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
atcom.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
athudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
athudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
athudson.ExtensionFinder._find(ExtensionFinder.java:151)
athudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:317)
athudson.ExtensionList.load(ExtensionList.java:295)
athudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
athudson.ExtensionList.iterator(ExtensionList.java:138)
athudson.ExtensionList.get(ExtensionList.java:129)
athudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:86)
atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
atjava.lang.reflect.Method.invoke(Method.java:601)
athudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105)
athudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169)
atorg.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
atjenkins.model.Jenkins$7.runTask(Jenkins.java:904)
atorg.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
atorg.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:722)
解决 方法: 安装 oracle jdk ,切换oracle jdk 为默认java 环境
在cubietruck 报 异常 java.lang.UnsatisfiedLinkError: jnidispatch(/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path
java.lang.UnsatisfiedLinkError: jnidispatch(/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path atcom.sun.jna.Native.loadNativeLibraryFromJar(Native.java:697) atcom.sun.jna.Native.loadNativeLibrary(Native.java:674) atcom.sun.jna.Native.<clinit>(Native.java:115) atcom.sun.akuma.CLibrary.<clinit>(CLibrary.java:89) atcom.sun.akuma.JavaVMArguments.resolvePID(JavaVMArguments.java:126) atcom.sun.akuma.JavaVMArguments.ofLinux(JavaVMArguments.java:114) atcom.sun.akuma.JavaVMArguments.of(JavaVMArguments.java:104) atcom.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:92) atjenkins.diagnosis.HsErrPidList.<init>(HsErrPidList.java:62) atsun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) atjava.lang.reflect.Constructor.newInstance(Constructor.java:408) atcom.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86) atcom.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108) atcom.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88) atcom.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) atcom.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) atcom.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058) atcom.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) atcom.google.inject.Scopes$1$1.get(Scopes.java:65) athudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429) atcom.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) atcom.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005) atcom.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051) atcom.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001) athudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391) athudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382) athudson.ExtensionFinder._find(ExtensionFinder.java:151) athudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:317) athudson.ExtensionList.load(ExtensionList.java:295) athudson.ExtensionList.ensureLoaded(ExtensionList.java:248) athudson.ExtensionList.iterator(ExtensionList.java:138) athudson.ExtensionList.get(ExtensionList.java:129) athudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:86) atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) atjava.lang.reflect.Method.invoke(Method.java:483) athudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) athudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) atorg.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) atjenkins.model.Jenkins$7.runTask(Jenkins.java:904) atorg.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) atorg.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) atjava.lang.Thread.run(Thread.java:744) |
解决方法
find \ -name jna-3.3.0-jenkins-3.jar
去https://github.com/twall/jna 下载
https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar
将 jna-3.3.0-jenkins-3.jar 删掉 将 jna-4.1.0.jar 和 jna-platform-4.1.0.jar 放入 目录里
ps:
插件包里面也有一个 jna 的包
我这边做了替换,但是看jar 里面的内容没有 *.so文件,所以是不用替换的
以上是“Cubieboard 3如何安装Jenkins”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!
内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/118555.html