Re: How to clean before checkout in a Multibranch Pipeline

2017-06-20 Thread Mark Waite
On Tue, Jun 20, 2017 at 9:03 AM Francois Marot wrote: > Your answer is so obvious I feel ashamed of myself ! ;) > I used: bat "git clean -dfx" which is IMHO the best. > I find the additional checkout step very redundant as Jenkins itself > checkout the files in order to get the Jenkinsfile. > > T

Re: How to clean before checkout in a Multibranch Pipeline

2017-06-20 Thread Francois Marot
Your answer is so obvious I feel ashamed of myself ! ;) I used: bat "git clean -dfx" which is IMHO the best. I find the additional checkout step very redundant as Jenkins itself checkout the files in order to get the Jenkinsfile. Great thanks Mark On Tuesday, June 20, 2017 at 4:44:08 PM UTC+2, M

Re: How to clean before checkout in a Multibranch Pipeline

2017-06-20 Thread Mark Waite
On Tue, Jun 20, 2017 at 8:38 AM Francois Marot wrote: > I converted an old style job to Multibranch Pipeline with a Jenkinsfile > (declarative syntax). > Problem is that files from previous build are present in new builds and > cause numerous problems once packaged. > In the old-style job, I used

How to clean before checkout in a Multibranch Pipeline

2017-06-20 Thread Francois Marot
I converted an old style job to Multibranch Pipeline with a Jenkinsfile (declarative syntax). Problem is that files from previous build are present in new builds and cause numerous problems once packaged. In the old-style job, I used to activate the "clean before checkout " param of the git plug