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

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

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • cvs-plugin
    • None
    • Jboss/Linux
      CVS Plugin 2.11
      Jenkins ver. 1.532.2

      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.

          [JENKINS-23491] CVS Plugin deletes all files in workspace when "Use Update" is not selected

          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.

          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.

          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?

          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?

          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.

          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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: