-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
centos 6
Jenkins 1.651.3
Artifactory plugin 2.5.1
Building in workspace /var/lib/jenkins/workspace/JFrog sample
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/JFrogDev/project-examples.git # timeout=10
Fetching upstream changes from https://github.com/JFrogDev/project-examples.git
> git --version # timeout=10
> git fetch --tags --progress https://github.com/JFrogDev/project-examples.git +refs/heads/:refs/remotes/origin/
> git rev-parse refs/remotes/origin/master^
> git rev-parse refs/remotes/origin/origin/master^{commit}
# timeout=10
Checking out Revision 8b6c06a4bb903bdfb831f740da364dedf82adb75 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 8b6c06a4bb903bdfb831f740da364dedf82adb75
> git rev-list 8b6c06a4bb903bdfb831f740da364dedf82adb75 # timeout=10
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.RuntimeException: Unable to determine Maven version
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:167)
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.IllegalArgumentException: mavenHome '/home/srijini/maven/apache-maven-3.3.9' doesn't seem to exist on this node (or you don't have sufficient rights to access it)
at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
at hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
at hudson.FilePath.act(FilePath.java:1077)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72)
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165)
... 10 more
project=hudson.maven.MavenModuleSet@56ea02c9[JFrog sample]
project.getModules()=[]
project.getRootModule()=null
FATAL: Unable to determine Maven version
java.lang.RuntimeException: Unable to determine Maven version
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:167)
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.IllegalArgumentException: mavenHome '/home/srijini/maven/apache-maven-3.3.9' doesn't seem to exist on this node (or you don't have sufficient rights to access it)
at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
at hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
at hudson.FilePath.act(FilePath.java:1077)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81)
at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72)
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165)
... 10 more
Finished: FAILURE
This looks like a duplication of this issue:
https://www.jfrog.com/jira/browse/HAP-771
Version 2.5.1 of the plugin should resolve it. Can you please make sure you're using 2.5.1 and that jars from previous version are not cached on the .jenkins/plugins or .jenkins/cache?