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

Maven 2 Module Archive consumes a huge amount of space

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: Linux

      I want to keep a history of builds, but am not very interested in keeping the
      maven built artifacts. Anything we want to keep should be a release, done
      outside of hudson.

      I use the following commands to delete the archive files, which get into GBs
      very quickly, because we build a tar.gz of all dependencies, and we end of with
      many copies of this.

      cd hudson-data/jobs/
      cd ProjectX
      find modules -name archive -print0 | xargs -0 rm -rf

      It would be good to have an option to not keep this archive or clear it after a
      few days, but keep the builds.

          [JENKINS-1135] Maven 2 Module Archive consumes a huge amount of space

          yschimke created issue -

          Code changed in hudson
          User: kohsuke
          Path:
          /hudson/hudson/main/core/src/main/resources/lib/hudson/Action.java (1.11)
          /hudson/hudson/main/core/src/main/java/hudson/actions.jelly (1.5)
          /hudson/hudson/main/core/src/main/java/hudson/Functions.java (1.77)
          Failed to compute FishEye link java.io.IOException: cvs output:
          cvs rlog: cannot find module `hudson/hudson/main/core/src/main/resources/lib/hudson/Action.java' - ignored

          Log:
          fixed issue #1135 by handling absolute URLs

          SCM/JIRA link daemon added a comment - Code changed in hudson User: kohsuke Path: /hudson/hudson/main/core/src/main/resources/lib/hudson/Action.java (1.11) /hudson/hudson/main/core/src/main/java/hudson/actions.jelly (1.5) /hudson/hudson/main/core/src/main/java/hudson/Functions.java (1.77) Failed to compute FishEye link java.io.IOException: cvs output: cvs rlog: cannot find module `hudson/hudson/main/core/src/main/resources/lib/hudson/Action.java' - ignored Log: fixed issue #1135 by handling absolute URLs

          remke added a comment -

          I am experiencing the same issue.
          All our jobs (well most of them) are maven2 jobs. They all generate artifacts
          including dependencies. Even worse, the artifacts are produced in different
          formats (war, ear, zip). Every build leads to tens of megabytes. The artifacts
          created in:
          $HUDSON_HOME/jobs/<myjobname>/modules/<mymavenname>/yyyy-MM-dd_hh-mm-ss/archive

          The job configuration settings for 'archive artifacts' and 'keep last version
          only' do not influence the generation of these archive directories. The above
          mentioned archive directories are still created and not cleaned up.

          My workaround for the moment is to clean up manyally. Clean up by a script would
          be possible, but I don't want to clean up all archive directories: I want to
          keep the artifacts for the last successfull build (and the last failed/unstable
          build if that is newer). In fact I want to achieve exactly what the 'archive
          artifacts' and 'keep last version only' option promises.

          I DO want to keep the build info itself though (log, status, ...).

          Is this possible?

          remke added a comment - I am experiencing the same issue. All our jobs (well most of them) are maven2 jobs. They all generate artifacts including dependencies. Even worse, the artifacts are produced in different formats (war, ear, zip). Every build leads to tens of megabytes. The artifacts created in: $HUDSON_HOME/jobs/<myjobname>/modules/<mymavenname>/yyyy-MM-dd_hh-mm-ss/archive The job configuration settings for 'archive artifacts' and 'keep last version only' do not influence the generation of these archive directories. The above mentioned archive directories are still created and not cleaned up. My workaround for the moment is to clean up manyally. Clean up by a script would be possible, but I don't want to clean up all archive directories: I want to keep the artifacts for the last successfull build (and the last failed/unstable build if that is newer). In fact I want to achieve exactly what the 'archive artifacts' and 'keep last version only' option promises. I DO want to keep the build info itself though (log, status, ...). Is this possible?

          hoodja added a comment -

          adding myself to CC list

          hoodja added a comment - adding myself to CC list

          Mike Delaney added a comment -

          I'm also running into this issue. We're also building Artifact in different
          packaging types (war, ear, zip ... etc) and the sum of the Artifacts size is
          roughly 900Mb which get transferred over SSH. Copying over the artifacts is
          adding almost 15 minutes to our build times for a step we really don't need.

          Mike Delaney added a comment - I'm also running into this issue. We're also building Artifact in different packaging types (war, ear, zip ... etc) and the sum of the Artifacts size is roughly 900Mb which get transferred over SSH. Copying over the artifacts is adding almost 15 minutes to our build times for a step we really don't need.

          DavidCraft added a comment - - edited

          This is also effecting my team greatly. The sum of our artifacts is about 500mb. After just a few builds this quickly grows to insane levels.

          DavidCraft added a comment - - edited This is also effecting my team greatly. The sum of our artifacts is about 500mb. After just a few builds this quickly grows to insane levels.
          Andrew Bayer made changes -
          Link New: This issue depends on JENKINS-4593 [ JENKINS-4593 ]
          Andrew Bayer made changes -
          Link Original: This issue depends on JENKINS-4593 [ JENKINS-4593 ]
          Andrew Bayer made changes -
          Link New: This issue duplicates JENKINS-4593 [ JENKINS-4593 ]
          Andrew Bayer made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            yschimke yschimke
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: