gitlab-plugin icon indicating copy to clipboard operation
gitlab-plugin copied to clipboard

Triggered infinitely by an SCM change

Open abcfy2 opened this issue 12 years ago • 10 comments

When this plugin triggered build, offten build infinitely by an SCM change unless I abort the build job.

Here is some screenshort:

deepinscreenshot20141126193856 deepinscreenshot20141126193916

What's wrong?

abcfy2 avatar Nov 26 '14 11:11 abcfy2

I have the same issue

msvetkin avatar Nov 27 '14 04:11 msvetkin

I have the same too, but "Started by an SCM change" build occur only once after build on merge request.

gohoho avatar Dec 01 '14 05:12 gohoho

faced the same, possibly related to the git plugin. I deleted the job, created a new one with exactly the same configuration and the problem was gone. So maybe try that or delete previous builds (if possible)?

xaniasd avatar Dec 01 '14 06:12 xaniasd

Updated GIT client plugin 1.12.0, GIT plugin 2.3.1 and problem was gone.

msvetkin avatar Dec 01 '14 08:12 msvetkin

@abcfy2 can you confirm updating the git plugins fixes this?

bassrock avatar Dec 04 '14 18:12 bassrock

@bassrock I can confirm this. In fact, updating to the latest version of the git plugin fixes a number of other inconsistencies (e.g. reporting revisions on previous builds). This means however that the minimum version of Jenkins supported will be 1.568.

xaniasd avatar Dec 04 '14 19:12 xaniasd

ok cool. Im ok with changing the jenkins requirement if it makes the plugin a lot more stable

bassrock avatar Dec 04 '14 19:12 bassrock

Yeah, it's fixed.

abcfy2 avatar Dec 05 '14 01:12 abcfy2

Started getting the same today On latest

Jenkins ver. 2.190.1

image

It's giving nightmare with infinite builds marked as "Started by an SCM change" even if I start the build myself, one build is triggered on my name followed by infinite triggers by "SCM change" and there is no change in code at all.

Seeing these weird new lines

Multiple candidate revisions
Scheduling another build to catch up with

like https://issues.jenkins-ci.org/browse/JENKINS-54102?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel And this is happening for master branch but we don't have any "origin/master" branch as suggested workaround here https://issues.jenkins-ci.org/browse/JENKINS-21464?focusedCommentId=250183&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-250183

Any workaround?

p00j4 avatar Feb 12 '20 07:02 p00j4

Update Even when we didn't have origin/master, replacing the wildcard find "*/master" with "master" in "Branches to build" fixes the issue. But, I have been using the same since the ages (8 years now) and the wildcard has never given me this issue before. This surely is a bug with git jenkins plugin, reported here https://issues.jenkins-ci.org/browse/JENKINS-61065 Sorry for waking up this thread

p00j4 avatar Feb 12 '20 09:02 p00j4