-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
debian lenny, maven 2.2.1 installed from apache by hudson
(filing under 'core' since there are a gazillion components under the hudson project and I don't know which one to pick)
Trying to use the hudson 'deploy artifact to repository' feature, it failed like this (OURGROUP substituted for real group id):
ERROR: Error deploying artifact: Exit code: 1 - /bin/sh: line 0: cd: /var/lib/hudson/jobs/java-base/modules/OURGROUP-base/builds/2010-11-02_12-49-03/archive/OURGROUP/java-base/1.0-SNAPSHOT: No such file or directory
Notice that the real path is ".../OURGROUP$java-base....", but the $java is being expanded by the shell to the empty string. Something, whether Hudson or Maven, is incorrectly generating shell commands with improper quoting. (I tried with Maven 3.0 but that broke for unrelated reasons, so I have no idea whose fault it is right now.)
I turned off the feature and configure 'clean deploy' as build goals instead, to get around this.
The stack trace is as followed:
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:119)
at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:79)
at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:118)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:651)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
at hudson.model.Run.run(Run.java:1348)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:139)
- duplicates
-
JENKINS-4861 Post-build deployment of Maven artifacts does not work with scpexe-type repository
-
- Resolved
-