Jenkins Versions: 2.60.3 & 2.73.3 (WAR deployments on WildFly)
Plugin Version: 0.34
Platform: Linux
Plugins:
Git client plugin 2.6.0
Git plugin 3.6.4
Details:
No issues when the SCM is CVS. However we are migrating from CVS to GIT.
When I configure a freestyle job to use GIT as the SCM and with "Delete workspace before build starts" checked it ignores any "Advanced" options I use (I'm trying to exclude ' *.build.* ' and a 'reports/**' directory) and just deletes everything in the entire workspace.
In troubleshooting I also testing the Post Build Action > "Delete workspace when build is done". This half works. I can tell it to "Exclude" specific files, but as soon as the "Apply pattern also on directories" is checked it goes back to the above behavior of deleting everything regardless of excludes.
Really hoping someone can have a look at this and find the root cause and a fix.
Thanks in advance!
Edit:
I forgot to add that the GIT install is on a windows machine and the repo is located through a UNC share. Not that I think this has any bearing as the repo pull/clone works fine. Just trying to provide as much info as possible.
Jenkins Versions: 2.60.3 & 2.73.3 (WAR deployments on WildFly)
Plugin Version: 0.34
Platform: Linux
Plugins:
Git client plugin 2.6.0
Git plugin 3.6.4
Details:
No issues when the SCM is CVS. However we are migrating from CVS to GIT.
When I configure a freestyle job to use GIT as the SCM and with "Delete workspace before build starts" checked it ignores any "Advanced" options I use (I'm trying to exclude ' *.build.* ' and a 'reports/**' directory) and just deletes everything in the entire workspace.
In troubleshooting I also testing the Post Build Action > "Delete workspace when build is done". This half works. I can tell it to "Exclude" specific files, but as soon as the "Apply pattern also on directories" is checked it goes back to the above behavior of deleting everything regardless of excludes.
Really hoping someone can have a look at this and find the root cause and a fix.
Thanks in advance!
Edit:
I forgot to add that the GIT install is on a windows machine and the repo is located through a UNC share. Not that I think this has any bearing as the repo pull/clone works fine. Just trying to provide as much info as possible.