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

Prevent hudson from archiving multiple times within forked maven build lifecycles

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      Everytime hudson receives a post build event from maven it triggers the
      archiving of the artifacts. This can be cumbersome in a distributed environment,
      because war or ear archives have to be transferred multiples times over the wire.

      Please archive an artifact only once or let the project configure this.

      Suppose the following code in MavenArtifact:

      /**

      • Called from within Maven to archive an artifact in Hudson.
        */
        public void archive(MavenBuildProxy build, File file, BuildListener listener)
        throws IOException, InterruptedException {
        FilePath target = getArtifactArchivePath(build, groupId, artifactId,
        version);
        if (target.exists()) { return; }

            Unassigned Unassigned
            rlink77de rlink77de
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: