[JIRA] (JENKINS-39236) Doesn't fire all jobs for a branch, when a git commitNotify hook is called

34 views
Skip to first unread message

ptadi@roshitech.com (JIRA)

unread,
Oct 25, 2016, 7:03:01 AM10/25/16
to jenkinsc...@googlegroups.com
Prasad Tadi created an issue
 
Jenkins / Bug JENKINS-39236
Doesn't fire all jobs for a branch, when a git commitNotify hook is called
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2016/Oct/25 11:02 AM
Priority: Minor Minor
Reporter: Prasad Tadi

we have TWO jenkins jobs configured for each of the branch. One for Release mode and one for Debug version.

When a code is committed to the GIT, the post-commit hook is calling the curl command to send the build request to Jenkins.

Randomly it selects one job and starts the build and the second jobs is ignored / ( not started).
I have to hit a "Poll SCM" in Jenkins to start the second job.

I couldn't able to collect any logs to debug this scenario.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 29, 2016, 11:43:02 AM10/29/16
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 29, 2016, 11:45:01 AM10/29/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-39236
 
Re: Doesn't fire all jobs for a branch, when a git commitNotify hook is called

I can't duplicate the problem you're describing. You'll need to provide detailed, step by step instructions to show the problem. You may consider starting with a Jenkins docker instance (like my lts-with-plugins) so that you can then share your duplication steps with others.

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 12:38:02 PM10/29/16
to jenkinsc...@googlegroups.com

I think it could be my configuration issue,

My jobs are copied from a template and template was pointing to the wrong branch in the "Ref Specs".
This could be the reason, why the hook was not firing.
Once I cleared that Ref Specs, then the JOBs started working fine.
As this was a Hidden Property, it took some time to debug this issue.

I have made the changes and things seems to work.
We may close this defect now.

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 12:38:06 PM10/29/16
to jenkinsc...@googlegroups.com
Prasad Tadi resolved as Not A Defect
 

Configuration Error by user

Change By: Prasad Tadi
Status: Open Resolved
Resolution: Not A Defect

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 4:25:01 PM10/29/16
to jenkinsc...@googlegroups.com
 
Re: Doesn't fire all jobs for a branch, when a git commitNotify hook is called

BTW.. I am not sure if this is related ..... sometimes the plugin to "GIT Polling log" gives error as follows ....
I have to force the "POLL SCM" and select "update" to fix this issue.

Any idea how we can resolve this?

========== Poll SCM =====

You must use POST method to trigger builds. (From scripts you may instead pass a per-project authentication token, or authenticate with your API token.) If you see this page, it may be because a plugin offered a GET link; file a bug report for that plugin.

UPDATE
====================Git Polling Log ========
Git Polling Log

Started on Oct 29, 2016 1:59:35 PM
Using strategy: Default
[poll] Last Built Revision: Revision 601beb34d132cdf40ec14e7eafae8f40467573b8 (refs/remotes/origin/rel-5.5.0.0)
> /usr/bin/git ls-remote -h git@thoroughbred:flt/root.git # timeout=10
FATAL: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h git@thoroughbred:flt/root.git" returned status code 128:
stdout:
stderr: ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

java.io.IOException: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h git@thoroughbred:flt/root.git" returned status code 128:
stdout:
stderr: ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:574)
at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:391)
at hudson.scm.SCM.poll(SCM.java:408)
at hudson.model.AbstractProject._poll(AbstractProject.java:1460)
at hudson.model.AbstractProject.poll(AbstractProject.java:1363)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:528)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:574)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h git@thoroughbred:flt/root.git" returned status code 128:
stdout:
stderr: ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1419)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1410)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2463)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:613)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:572)
... 12 more
Done. Took 3 sec
No changes

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 4:26:01 PM10/29/16
to jenkinsc...@googlegroups.com
Prasad Tadi reopened an issue
 

I marked it as resolved pre maturely....

Change By: Prasad Tadi
Resolution: Not A Defect
Status: Resolved Reopened

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 4:27:02 PM10/29/16
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 29, 2016, 4:32:01 PM10/29/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Please submit questions related to authentication failures, and other configuration failures to the jenkins users mailing list. There are many more people on the mailing list who can assist with configuration errors.

The output shows that you can't read from the remote repository. That's not usually a plugin bug. It is much more often a configuration error which many more people can assist.

Change By: Mark Waite
Status: Reopened Resolved
Resolution: Not A Defect

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 7:26:01 PM10/29/16
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 29, 2016, 7:36:01 PM10/29/16
to jenkinsc...@googlegroups.com

ptadi@roshitech.com (JIRA)

unread,
Oct 29, 2016, 7:41:01 PM10/29/16
to jenkinsc...@googlegroups.com
Prasad Tadi closed an issue as Not A Defect
 

this is a configuration issue from my end.

Change By: Prasad Tadi
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages