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

Please modify clean after checkout behaviour to optionally clean ignored, un-ignored and tracked files

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • git-plugin
    • None
    • Linux master, Mac & PC slaves. Jenkins 1.590

      Currently 'clean after checkout' does 3 things:
      1) Delete un-ignored untracked files and directories (similar to git clean -df)
      2) Delete ignored untracked files and directories (similar to git clean -xdf)
      3) Reset tracked files (similar to git reset)

      I would like to only do #3. It would also be useful to do #1 and #3 without doing #2.

      This is because we are using Unity which creates a lot of library files which we are happy to persist between builds. These files are required and take a long time to generate but do not affect the build outcome so are safe to leave. The file path is added to .gitignore.

      It may make sense to add a 'clean' behaviour and a 'reset' behaviour with somewhere we can pass our own parameters.

            Unassigned Unassigned
            boinged Steven Shipton
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: