2

How can I configure jenkins that it pull instead of clone?

enter image description here

Lusi
  • 391
  • 9
  • 28
  • Pull and clone are not mutually exclusive options (you can't pull unless you're in a repo, and you need clone to get a repo). So could you clarify your intent here? – Oliver Charlesworth Feb 03 '15 at 13:56

1 Answers1

5

The default behavior of git plugin in jenkins is:

  1. Clone the repository if your directory is empty;
  2. If the repository has already been cloned, it will be updated.

So, the first time that your job run the repository will be cloned, and in the second will be updated.

Victor
  • 5,043
  • 3
  • 41
  • 55