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

Add option to clean workspace before each build

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      If this option is selected the workspace will be deleted before each build
      begins so that each build can have a fresh workspace. This will be off by default.

          [JENKINS-3966] Add option to clean workspace before each build

          kaxelson created issue -

          kaxelson added a comment -

          starting work on this

          kaxelson added a comment - starting work on this
          kaxelson made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Code changed in hudson
          User: : kaxelson
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java
          trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java
          trunk/hudson/main/core/src/main/resources/hudson/model/AbstractItem/configure-common.jelly
          trunk/hudson/main/core/src/main/resources/lib/hudson/project/config-cleanWorkspace.jelly
          trunk/hudson/main/war/resources/help/project-config/cleanWorkspace.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=19373
          Log:
          [FIXED JENKINS-3966] added option to clean workspace before each build as part of advanced project configuration

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kaxelson Path: trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java trunk/hudson/main/core/src/main/resources/hudson/model/AbstractItem/configure-common.jelly trunk/hudson/main/core/src/main/resources/lib/hudson/project/config-cleanWorkspace.jelly trunk/hudson/main/war/resources/help/project-config/cleanWorkspace.html http://fisheye4.cenqua.com/changelog/hudson/?cs=19373 Log: [FIXED JENKINS-3966] added option to clean workspace before each build as part of advanced project configuration
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in hudson
          User: : kaxelson
          Path:
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=19374
          Log:
          JENKINS-3966: adding changelog message

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kaxelson Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=19374 Log: JENKINS-3966 : adding changelog message

          Rolled back from 1.315 release in rev.19544. See
          http://www.nabble.com/attention-all-subversion-users-td24335693.html for the
          discussion.

          Kohsuke Kawaguchi added a comment - Rolled back from 1.315 release in rev.19544. See http://www.nabble.com/attention-all-subversion-users-td24335693.html for the discussion.
          Kohsuke Kawaguchi made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Jesse Glick added a comment -

          Note that the Mercurial plugin already has an option to delete all nonversioned
          files from the workspace before starting. (The .hg/ subdirectory is excluded as
          is usual.) I think there is a similar issue open for Subversion. This is more
          efficient than deleting everything in the workspace, but may not be applicable
          for all situations.

          Jesse Glick added a comment - Note that the Mercurial plugin already has an option to delete all nonversioned files from the workspace before starting. (The .hg/ subdirectory is excluded as is usual.) I think there is a similar issue open for Subversion. This is more efficient than deleting everything in the workspace, but may not be applicable for all situations.

          dma_k added a comment -

          The option to remove all workspace is important to make maven release plugin to
          work correctly for the projects, that generate sources e.g. with JAXB. In my
          case I commit JAXB sources from Windows environment, which after being
          re-generated have different EOF and SVN senses this as uncommitted change, which
          in its turn blocks the release.
          If the fix is ready, what is the target milestone for this fix?

          dma_k added a comment - The option to remove all workspace is important to make maven release plugin to work correctly for the projects, that generate sources e.g. with JAXB. In my case I commit JAXB sources from Windows environment, which after being re-generated have different EOF and SVN senses this as uncommitted change, which in its turn blocks the release. If the fix is ready, what is the target milestone for this fix?

            kaxelson kaxelson
            kaxelson kaxelson
            Votes:
            19 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: