Ido Ran
Ido Ran

Reputation: 11384

Jenkins trigger builds due to fail polling

I am using Jenkins to push NodeJS project to Heroku. My project configuration has 2 git repositories setup, one is the source code and the other is heroku's app git repository.

The problem is that jenkins is polling on both repositories and when it fail to find the branch I'm looking for in the code repository is fails with the following error:

Using strategy: Default
[poll] Last Built Revision: Revision 1234 (origin/qa)
using GIT_SSH to set credentials Jenkins SSH Key
 > git -c core.askpass=true ls-remote -h [email protected]:my-app.git qa # timeout=10
[poll] Couldn't get remote head revision
Done. Took 3 sec
Changes found

As you can see it fail to find head revision for the heroku git repository and decide changes found.

How can I make Jenkins poll only on the source code repository?

Upvotes: 1

Views: 670

Answers (1)

Ido Ran
Ido Ran

Reputation: 11384

I've update my GIT plugin to version 2.4.0 and it seem to solve the problem.

Upvotes: 1

Related Questions