[JIRA] (JENKINS-59185) 'clean before checkout' configurable

10 views
Skip to first unread message

richiechoo1993@gmail.com (JIRA)

unread,
Sep 2, 2019, 8:11:02 AM9/2/19
to jenkinsc...@googlegroups.com
Richie Choo created an issue
 
Jenkins / Improvement JENKINS-59185
'clean before checkout' configurable
Issue Type: Improvement Improvement
Assignee: Mark Waite
Components: git-plugin
Created: 2019-09-02 12:10
Priority: Major Major
Reporter: Richie Choo

When use 'clean before checkout',It execultes 'git reset --hard && git clean -fdx' with default flags.How can I make Jenkins exec "git reset --hard && git clean -fd'?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 2, 2019, 9:33:02 AM9/2/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 2, 2019, 9:37:03 AM9/2/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Improvement JENKINS-59185
 
Re: 'clean before checkout' configurable

The clean before checkout has no way to allow the user to control arguments to the clean command. If you need that level of control, don't use the clean before checkout extension. Use an sh or a bat step to perform the specific git clean command that is desired.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 2, 2019, 9:37:04 AM9/2/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Fixed but Unreleased Closed

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 2, 2019, 9:37:04 AM9/2/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Won't Do
Reply all
Reply to author
Forward
0 new messages