Lusi
Lusi

Reputation: 411

jenkins git how pull instead of clone?

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

enter image description here

Upvotes: 3

Views: 6630

Answers (1)

Victor
Victor

Reputation: 5131

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.

Upvotes: 6

Related Questions