[JIRA] (JENKINS-45490) Git Clean before checkout fails with pipeline

2 views
Skip to first unread message

aleksei.antonovich@gmail.com (JIRA)

unread,
Jul 16, 2018, 10:55:02 AM7/16/18
to jenkinsc...@googlegroups.com
Aleksei Antonovich commented on Bug JENKINS-45490
 
Re: Git Clean before checkout fails with pipeline

Use of deleteDir() have drawbacks: it will force downloading of git repo from scratch. And if you have big repo it will slowdown build.

test -e .git && git clean -fdx

Instead of deleteDir() does the trick.
Based on solution from: https://stackoverflow.com/questions/34213036/clean-builds-with-multibranch-workflow: sh 'git clean -fdx'.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

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

unread,
Oct 22, 2019, 9:32:36 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Won't Fix
 
Jenkins / Bug JENKINS-45490
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages