美文网首页
Jenkins 使用问题记录

Jenkins 使用问题记录

作者: minhelloworld | 来源:发表于2020-02-29 17:11 被阅读0次

1、记录

1.1、jenkins clean build dir fail解决方案

1.1.1、问题日志
ERROR: Failed to clean the workspace
java.io.IOException: Unable to delete '/var/lib/jenkins/workspace/OppoBokeh_ELF'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
   at hudson.Util.deleteContentsRecursive(Util.java:257)
   at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
   at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
   at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
   at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
   at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)
   at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75)
   at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
   at hudson.security.ACL.impersonate(ACL.java:290)
   at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /var/lib/jenkins/workspace/OppoBokeh_ELF/bokeh/MegviiBokeh_0.1.359_20190820_a23ec1d/MEGVII ���������������������������.pdf
   at hudson.Util.fileToPath(Util.java:1662)
   at hudson.Util.isSymlink(Util.java:528)
   at hudson.Util.tryOnceDeleteRecursive(Util.java:386)
   at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:407)
   at hudson.Util.tryOnceDeleteRecursive(Util.java:387)
   at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:407)
   at hudson.Util.tryOnceDeleteRecursive(Util.java:387)
   at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:407)
   at hudson.Util.deleteContentsRecursive(Util.java:252)
   ... 14 more
1.1.2、解决方式

1、查看系统支持的语言列表:

root@template:~# locale -a
C
C.UTF-8
POSIX

2、安装对应的语言包并查看:

root@3879852b9445:/# locale-gen en_US.UTF-8
Generating locales (this might take a while)...
  en_US.UTF-8... done
root@3879852b9445:/# locale -a
C
C.UTF-8
en_US.utf8
POSIX

3、更新系统语言:

root@3879852b9445:/# update-locale LANG=en_US.UTF-8

# 验证是否更新成功
root@3879852b9445:/# cat /etc/default/locale
#  File generated by update-locale
LANG=en_US.UTF-8
root@3879852b9445:/# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

4、重新启动系统;

sudo docker stop jenkins; sudo docker start jenkins

5、更新 JAVA_ARGS:

root@3879852b9445:~# cat /etc/default/jenkins 
image.png

6、查看Jenkins-系统管理-系统信息:

image.png image.png

相关文章

网友评论

      本文标题:Jenkins 使用问题记录

      本文链接:https://www.haomeiwen.com/subject/fmcmhhtx.html