Cubieboard3如何安装Jenkins

这篇文章主要为大家展示了“Cubieboard 3如何安装Jenkins”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“Cubieboard 3如何安装Jenkins”这篇文章吧。

创新互联公司是一家集网站建设,渑池企业网站建设,渑池品牌网站建设,网站定制,渑池网站建设报价,网络营销,网络优化,渑池网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

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 binary/ > /etc/apt/sources.list.d/jenkins.list"  
sudo apt-get update  

sudo apt-get install jenkins 


jenkins 安装目录是 /var/lib/jenkins

启动/关闭

sudo /etc/init.d/jenkins start
sudo /etc/init.d/jenkins stop

log 路径 为 /var/log/jenkins/jenkins.log

jenkins 修改 默认 访问端口

在cubietruck 报 异常 java.lang.UnsatisfiedLinkError

如: 

java.lang.UnsatisfiedLinkError:com.sun.jna.Native.open(Ljava/lang/String;)J

         atcom.sun.jna.Native.open(Native Method)

         atcom.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)

         atcom.sun.jna.Library$Handler.(Library.java:140)

         atcom.sun.jna.Native.loadLibrary(Native.java:366)

         atcom.sun.jna.Native.loadLibrary(Native.java:351)

         atcom.sun.akuma.CLibrary.(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.(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.(Native.java:115)

         atcom.sun.akuma.CLibrary.(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.(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

以上是“Cubieboard 3如何安装Jenkins”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


本文标题:Cubieboard3如何安装Jenkins
URL链接:http://ybzwz.com/article/pjgcpd.html