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

CVS Plugin deletes all files in workspace when "Use Update" is not selected

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Component/s: cvs-plugin
    • Labels:
      None
    • Environment:
      Jboss/Linux
      CVS Plugin 2.11
      Jenkins ver. 1.532.2
    • Similar Issues:

      Description

      If "Use Update" option is not selected, all files in project's workspace, including build.xml and build.properties, are deleted when the build job is executed.

      Is it possible to change the plugin to either: a) delete only the files that were checked out from CVS (reference Module's remote/local name); or b) add an option to exclude certain files/directories from being removed. Similar to "Delete Workspace" plugin.

        Attachments

          Activity

          Hide
          mc1arke Michael Clarke added a comment -

          If you want the features of the Delete Workspace plugin then install and use it on this job. There's no point in duplicating features between plugins when installing the additional plugin would do the job.

          Show
          mc1arke Michael Clarke added a comment - If you want the features of the Delete Workspace plugin then install and use it on this job. There's no point in duplicating features between plugins when installing the additional plugin would do the job.
          Hide
          pavelsaab Pavel Saab added a comment -

          I do have the Delete Workspace plugin installed and configured to exclude certain items from being deleted in the job's workspace. However, your plugin does not respect those settings and wipes out everything under the workspace. Why does it need to do that? Can you limit it to only delete items that were checked out from CVS?

          Show
          pavelsaab Pavel Saab added a comment - I do have the Delete Workspace plugin installed and configured to exclude certain items from being deleted in the job's workspace. However, your plugin does not respect those settings and wipes out everything under the workspace. Why does it need to do that? Can you limit it to only delete items that were checked out from CVS?
          Hide
          pavelsaab Pavel Saab added a comment -

          I am re-opening this issue because it's not clear why the plugin deletes everything in the workspace, instead of just the items that it checked out from CVS. I want to be able to keep certain items in my workspace, such as static analysis reports and the build.xml files, but I am forced to place those items outside of the workspace directory if "Use Update" option is not selected.

          Show
          pavelsaab Pavel Saab added a comment - I am re-opening this issue because it's not clear why the plugin deletes everything in the workspace, instead of just the items that it checked out from CVS. I want to be able to keep certain items in my workspace, such as static analysis reports and the build.xml files, but I am forced to place those items outside of the workspace directory if "Use Update" option is not selected.
          Hide
          mc1arke Michael Clarke added a comment -

          Re-closing. The CVS plugin has always wiped out the workspace when not doing an update so ensure the workspace is in a clean state (no modified CVS control files, no non-cvs controlled files/directories etc). Since CVS has no way of reverting workspace changes (e.g. the equivalent of git clean), wiping out the workspace is the only consistent way to do this. There are no plans to change this.

          Show
          mc1arke Michael Clarke added a comment - Re-closing. The CVS plugin has always wiped out the workspace when not doing an update so ensure the workspace is in a clean state (no modified CVS control files, no non-cvs controlled files/directories etc). Since CVS has no way of reverting workspace changes (e.g. the equivalent of git clean), wiping out the workspace is the only consistent way to do this. There are no plans to change this.

            People

            • Assignee:
              mc1arke Michael Clarke
              Reporter:
              pavelsaab Pavel Saab
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: