Cubieboard 3(cubietruck) 安装Jenkins

原创
2014/05/07 22:13
阅读数 499



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.<init>(Library.java:140)

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

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

         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: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文件,所以是不用替换的







来自为知笔记(Wiz)



展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部