Cubieboard 3(cubietruck) 安装Jenkins

Stella981
• 阅读 743

`` 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(cubietruck) 安装Jenkins

来自为知笔记(Wiz)

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
待兔 待兔
5个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
2021年全球公有云终端用户支出将增长18% ;EMNLP 2020最佳论文:无声语音的数字发声
!(https://static001.geekbang.org/infoq/af/af9f6637b50b09be60b00a42f3812d5e.png)开发者社区技术周刊又和大家见面
可莉 可莉
3年前
2021年全球公有云终端用户支出将增长18% ;EMNLP 2020最佳论文:无声语音的数字发声
!(https://static001.geekbang.org/infoq/af/af9f6637b50b09be60b00a42f3812d5e.png)开发者社区技术周刊又和大家见面
Wesley13 Wesley13
3年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
11个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这