Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40343

Allow passing custom clean parameters(for example -e "node_modules")

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      Hi,

      We want to use cleanBeforeCheckout() options but we want to exclude node_modules from cleaning. [Git clean](https://git-scm.com/docs/git-clean) has -e option which we want to use in this case.

      So do you think it would be a good idea to pass extra arguments to cleanBeforeCheckout:
      cleanBeforeCheckout("-e node_modules")

          [JENKINS-40343] Allow passing custom clean parameters(for example -e "node_modules")

            Unassigned Unassigned
            ivanovit Ivan Ivanov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: