젠킨스(Jenkins)/Trouble Shooting
[젠킨스(Jenkins)] 에러해결: java.lang.NoSuchMethodError: io.jenkins.plugins.forensics.m
2021. 5. 28. 13:00반응형
오류/에러명
$ docker stop --time=1 48ce74a81231231232101499063791dc3a4e13a96b1cff3f8bc2b4c9c322451236
$ docker rm -f 48ce74a81231231232101499063791dc3a4e13a96b1cff3f8bc2b4c9c322451236
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.NoSuchMethodError: io.jenkins.plugins.forensics.miner.MinerService.queryStatisticsFor(Lhudson/model/Run;Ljava/util/Set;Ledu/hm/hafner/util/FilteredLog;)Lio/jenkins/plugins/forensics/miner/RepositoryStatistics;
at io.jenkins.plugins.analysis.core.steps.IssuesScanner.getRepositoryStatistics(IssuesScanner.java:109)
at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:98)
at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:736)
at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:702)
at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:673)
at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1090)
at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1050)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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)
Finished: FAILURE
원인
해당 도커 에이전트를 통해 젠킨스 파이프라인을 돌린 후
결과물을 리포트 했지만 다 리포트하고 나서
도커 컨테이너를 삭제하는 과정에서 생기는 오류.
해결방법
도커 컨테이너에 접속해서 clean up해야함
아래의 rm -rf 명령어를 입력해야함.
jenkins@4365897ff3a5:~/[결과물 경로]$ rm -rf [해당 관련 파일들]\@2\@tmp/
(예를들어)
jenkins@4365897ff3a5:~/workspace/~~/~~/~~$ rm -rf [해당 관련 파일들]\@2\@tmp/
도움이 되셨으면 "공감"버튼을 눌러주실 수 있을까요?
더 많은 도움을 드리는 게시글을 작성하겠습니다.
반응형