Open red8888 opened 4 years ago
Using Jenkins Artifactory Plugin version: 3.4.1 MAVEN_VERSION=3.6.2 JAVA_VERSION=8u232
If I run "mvn --no-transfer-progress clean verify" locally against my POM it works but using the jenkins plugin it fails.
This is the stage of my pipeline:
stage('Run tests') { environment { MAVEN_HOME = '/usr/share/maven' JAVA_HOME= '/usr/local/openjdk-8' } steps { rtMavenResolver ( id: 'resolver-unique-id', serverId: 'my-config', releaseRepo: 'releases', snapshotRepo: 'snapshots' ) rtMavenDeployer ( id: 'deployer-unique-id', serverId: 'my-config', releaseRepo: 'releases', snapshotRepo: 'snapshots' // just want to run maven tests first, not deploy yet deployArtifacts: false ) rtMavenRun( pom: "pom.xml", goals: '--no-transfer-progress clean verify', resolverId: 'resolver-unique-id', deployerId: 'deployer-unique-id' ) } }
I see this in the pipeline and it just hangs forever:
Jenkins Artifactory Plugin version: 3.4.1 ... Artifactory integration is enabled Executing shell script inside container [maven-build] of pod Executing command: "/usr/local/openjdk-8/bin/java" "-classpath" "/usr/share/maven/boot/*" "-Dmaven.home=/usr/share/maven" "-Dmaven.conf=/usr/share/maven/conf" "-DbuildInfoConfig.propertiesFile=/home/jenkins/agent/workspace/00-testing@tmp/artifactory/buildInfo8800737876922960166.properties" "-DbuildInfoConfig.artifactoryResolutionEnabled=true" "-Dm3plugin.lib=/home/jenkins/agent/workspace/00-testing@tmp/artifactory/cache/artifactory-plugin/3.4.1" "-Dclassworlds.conf=/home/jenkins/agent/workspace/00-testing@tmp/artifactory/classworlds8224539502069128397conf" "-Dmaven.multiModuleProjectDirectory=/home/jenkins/agent/workspace/00-testing" "org.codehaus.plexus.classworlds.launcher.Launcher" "-f" "./pom.xml" "--no-transfer-progress" "clean" "verify" exit [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - Scanning for projects... [main] ERROR org.jfrog.build.extractor.maven.resolver.ArtifactoryEclipseRepositoryListener - Failed while enforcing Artifactory artifact resolver org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException role: org.jfrog.build.extractor.maven.resolver.ArtifactoryEclipseArtifactResolve
Thanks for reporting this issue, @red8888. Are you using any maven extensions?
Using Jenkins Artifactory Plugin version: 3.4.1 MAVEN_VERSION=3.6.2 JAVA_VERSION=8u232
If I run "mvn --no-transfer-progress clean verify" locally against my POM it works but using the jenkins plugin it fails.
This is the stage of my pipeline:
I see this in the pipeline and it just hangs forever: