jenkins-git-plugin

How to cleanup pipeline before checkout of repository in Jenkinsfile

末鹿安然 提交于 2020-12-12 11:39:48
问题 I want to make a clean before checkout operation which is described in Jenkins git plugin documentation: Clean before checkout Clean the workspace before every checkout by deleting all untracked files and directories, including those which are specified in .gitignore. ... But how can add this option to default checkout step which is doing as first step? I feel that it should be an option extended by git plugin which can be included to options block of Jenkinsfile as described in docs: The