温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Cubieboard 3如何安装Jenkins

发布时间:2021-11-26 11:52:29 来源:亿速云 阅读:142 作者:小新 栏目:互联网科技

这篇文章主要为大家展示了“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.<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文件,所以是不用替换的

Cubieboard 3如何安装Jenkins

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI