Artifactory plugin: Cannot read checksums of a folder

Hi there!

I have been searching the forums for this issue but no luck.

We are using Teamcity 8.1.2 (build 29993) with the Artifactory plugin. We set up the Artifactory repository URL in the plugin configuration page with working user and password (test button said OK). We set up the "Deploy Artifacts To Artifactory" section in the maven step with the previously set artifactory repo. Options set on it are:

Target repository: libs-test-release-local
Target snapshot repository: libs-test-snapshot-local
Override default deployer credentials: Use different deployer user name and password than the default ones defined in the Artifactory settings under the administrative system configuration page. If no global defaults are defined and no user name and password are given here anonymous deployment will be attempted.
Deploy Maven artifacts: Uncheck if you do not wish to deploy Maven artifacts from the plugin (a more efficient alternative to Mavens own deploy goal).
Deployment include patterns:
Deployment exclude patterns:


Everything works fine until Artifactory deployment starts. Then I get the following error:

java.lang.IllegalArgumentException: Cannot read checksums of a folder: D:\TeamCity\buildAgent\work\e7350e48d81a9923\TestAPIEs\target\classes      at org.jfrog.build.api.util.FileChecksumCalculator.calculateChecksums(FileChecksumCalculator.java:61)      at org.jfrog.teamcity.agent.BaseBuildInfoExtractor.getArtifactChecksumMap(BaseBuildInfoExtractor.java:265)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.addChecksumInfo(MavenBuildInfoExtractor.java:251)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.addModuleArtifact(MavenBuildInfoExtractor.java:212)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.addMainArtifact(MavenBuildInfoExtractor.java:267)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.addModules(MavenBuildInfoExtractor.java:133)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.appendRunnerSpecificDetails(MavenBuildInfoExtractor.java:84)      at org.jfrog.teamcity.agent.MavenBuildInfoExtractor.appendRunnerSpecificDetails(MavenBuildInfoExtractor.java:56)      at org.jfrog.teamcity.agent.BaseBuildInfoExtractor.extract(BaseBuildInfoExtractor.java:83)      at org.jfrog.teamcity.agent.BaseBuildInfoExtractor.extract(BaseBuildInfoExtractor.java:54)      at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.extractBuildInfo(AgentListenerBuildInfoHelper.java:181)      at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:119)      at org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:104)      at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:606)      at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:117)      at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)      at com.sun.proxy.$Proxy9.runnerFinished(Unknown Source)      at jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29)      at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32)      at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)      at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)      at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)      at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:265)      at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:52)      at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:231)      at java.lang.Thread.run(Thread.java:744)

We tried using different maven versions but the same error appears after building.

Any help on this would be appreciated. Thank you.

2 comments
Comment actions Permalink

Hi Marcos,

Atrifactory plugin is a third-party plug-in. According to stacktrace error occured in jfrog class. Please contact Artifactory plugin's support.

0
Comment actions Permalink

Thank you Alina:

I will do it asap.

0

Please sign in to leave a comment.