觀(guān)書(shū)有會(huì)意處孝偎,題其衣裳访敌,以記其事~
1、記錄
1.1衣盾、jenkins clean build dir fail解決方案
1.1.1捐顷、問(wèn)題日志
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雨效、查看系統(tǒng)支持的語(yǔ)言列表:
root@template:~# locale -a
C
C.UTF-8
POSIX
2迅涮、安裝對(duì)應(yīng)的語(yǔ)言包并查看:
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、更新系統(tǒng)語(yǔ)言:
root@3879852b9445:/# update-locale LANG=en_US.UTF-8
# 驗(yàn)證是否更新成功
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徽龟、重新啟動(dòng)系統(tǒng)叮姑;
sudo docker stop jenkins; sudo docker start jenkins
5、更新 JAVA_ARGS:
root@3879852b9445:~# cat /etc/default/jenkins
Jenkins_2_1_1.png
6据悔、查看Jenkins-系統(tǒng)管理-系統(tǒng)信息:
Jenkins_2_1_2.png
Jenkins_2_1_3.png