Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6899

Artifactory plugin deploy fails after maven:release plugin job is run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • artifactory-plugin
    • None
    • hudson 1.364, artifactory plugin 1.1.0, m2release plugin 0.4.0

      When performing a m2release it performs everything correctly, and then the artifactory plugin tries to deploy the next snapshot artifacts, and I get the stack trace that follows. As you can see the m2release completes successful. It correctly deploys the next snapshots jar, and fails on the pom. I traced it to the ArtifactDeployer and ensured that the source pom file exists on the hudson server running the release. The wording of the IO error is a little odd. Makes me think that the IO error is wrapped. I verified this by breaking on IOExceptions and it threw quite a few. That is when I gave up and decided to file a ticket.

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 31 seconds
      [INFO] Finished at: Thu Jul 01 11:06:20 EDT 2010
      [INFO] Final Memory: 17M/41M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      Deploying artifacts to https://repository.its.yale.edu/maven2
      Deploying artifacts of module: edu.yale.its:yale-junit
      Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.jar
      Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.pom
      ERROR: Failed to deploy file: Not Found
      java.io.IOException: Failed to deploy file: Not Found
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:310)
      at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:234)
      at org.jfrog.hudson.ArtifactsDeployer.deployArtifact(ArtifactsDeployer.java:99)
      at org.jfrog.hudson.ArtifactsDeployer.deploy(ArtifactsDeployer.java:64)
      at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:108)
      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:598)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1280)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)
      Finished: FAILURE

            yossis yossis
            jvalerio jvalerio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: