[JIRA] (JENKINS-23743) Failure on Git Polling Log when using Linux Master and Windows Slave

26 views
Skip to first unread message

peter.ricardo@gmail.com (JIRA)

unread,
Sep 3, 2019, 7:37:04 PM9/3/19
to jenkinsc...@googlegroups.com
peter ricardo reopened an issue
 

I have the same problem. The "Force polling using workspace" solution seems to solve the problem, but it actually disables checking and now runs the SCM-independent change-independent JOB and in the "scmPollLog" log you realize that Jenkins ignores whether or not there was a change. for the execution of the JOB.

This scenario really only occurs on my "Windows" slaves. On "Linux" slaves this problem does not occur.

Below is an account of the "scmPollLog" of the Linux environment and Windows environment respectively:

[Linux Slave]

Started on Sep 3, 2019 8:04:00 PM
no baseline polling in / opt / programs / jenkins / home / jobs / DEVOPS / jobs / example-pipeline-build-once / jobs / single-job / jobs / 0-job-pipeline / workspace @ libs / pipeline-lego on
Using strategy: Default
[poll] Last Built Revision: Revision a789961c69b460065cdf02969c945cb40b1cdc81 (refs / remotes / origin / master)
using credential 7701291b-c765-4ebc-a41a-a2150119532d
 > / usr / bin / git --version # timeout = 10
using GIT_SSH to set credentials git.serpro Publishing User (Global Key)
 > / usr / bin / git ls-remote -h g...@git.serpro: devops / aicat / delivery-continue-example-jsf.git # timeout = 10
Found 4 remote heads on g...@git.serpro: devops / aicat / delivery-continue-example-jsf.git
[poll] Latest remote head revision on refs / heads / master is: a789961c69b460065cdf02969c945cb40b1cdc81 - already built by 168
Done Took 0.64 sec
No changes

-------------
[Windows slave]

Started on Sep 3, 2019 8:06:00 PM
no baseline polling in / opt / programs / jenkins / home / jobs / DEVOPS / jobs / example-pipeline-build-once / jobs / single-job / jobs / 0-job-pipeline / workspace @ libs / pipeline-lego on
Using strategy: Default
[poll] Last Built Revision: Revision a789961c69b460065cdf02969c945cb40b1cdc81 (refs / remotes / origin / master)
using credential 7701291b-c765-4ebc-a41a-a2150119532d
 > C: \ Program Files \ Git \ cmd \ git.exe --version # timeout = 10
using GIT_SSH to set credentials git.serpro Publishing User (Global Key)
 > C: \ Program Files \ Git \ cmd \ git.exe ls-remote -h g...@git.serpro: devops / aicat / delivery-continue-example-jsf.git # timeout = 10
ERROR: polling failed in E: \ Jenkins2 \ Slaves \ workspace \ DEVOPS \ example-pipeline-build-once \ single-job \ 0-job-pipeline on windows_teste_spo
java.io.IOException: error = 2, No such file or directory
at java.lang.UNIXProcess.forkAndExec (Native Method)
at java.lang.UNIXProcess. <init> (UNIXProcess.java:247)
at java.lang.ProcessImpl.start (ProcessImpl.java:134)
at java.lang.ProcessBuilder.start (ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "C: \ Program Files \ Git \ cmd \ git.exe": error = 2, No such file or directory
at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
at hudson.Proc $ LocalProc. <init> (Proc.java:250)
at hudson.Proc $ LocalProc. <init> (Proc.java:219)
at hudson.Launcher $ LocalLauncher.launch (Launcher.java:937)
at hudson.Launcher $ ProcStarter.start (Launcher.java:455)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn (CliGitAPIImpl.java:2038)
Caused: hudson.plugins.git.GitException: Error performing command: C: \ Program Files \ Git \ cmd \ git.exe ls-remote -h g...@git.serpro: devops / aicat / delivery-continuous-example-jsf. git
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn (CliGitAPIImpl.java:2049)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials (CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials (CliGitAPIImpl.java:1666)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials (CliGitAPIImpl.java:1657)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev (CliGitAPIImpl.java:2824)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl (GitSCM.java:699)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith (GitSCM.java:658)
Caused: java.io.IOException
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith (GitSCM.java:660)
at org.jenkinsci.plugins.workflow.job.WorkflowJob.poll (WorkflowJob.java:617)
at hudson.triggers.SCMTrigger $ Runner.runPolling (SCMTrigger.java:603)
at hudson.triggers.SCMTrigger $ Runner.run (SCMTrigger.java:649)
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:1149)
at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Done Took 32 ms
No changes
Page generated: 09/03/2019 8:06 pm BRTJenkins ver. 2,176.2

Jenkins / Bug JENKINS-23743
Failure on Git Polling Log when using Linux Master and Windows Slave
Change By: peter ricardo
Resolution: Not A Defect
Status: Closed Reopened
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

peter.ricardo@gmail.com (JIRA)

unread,
Sep 3, 2019, 7:42:04 PM9/3/19
to jenkinsc...@googlegroups.com
peter ricardo edited a comment on Bug JENKINS-23743
 
Re: Failure on Git Polling Log when using Linux Master and Windows Slave
I have the same problem. The "Force polling using workspace" solution seems to solve the problem, but it actually disables checking and now runs the SCM- JOB independent of change -independent JOB and in SCM. In the "scmPollLog" log you realize that Jenkins ignores whether or not there was a change. for the execution of the JOB.

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

unread,
Sep 3, 2019, 9:47:02 PM9/3/19
to jenkinsc...@googlegroups.com

You might check for a possible file descriptor leak from code being called on the agent. Perform a disconnect of the agent, then connect it again.

If that resolves it, then you have the option of doing a disconnect / reconnect as a workaround.

If that does not resolve it, you could try killing and restarting the agent process on the agent computer.

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

unread,
Sep 3, 2019, 9:48:02 PM9/3/19
to jenkinsc...@googlegroups.com

peter.ricardo@gmail.com (JIRA)

unread,
Sep 4, 2019, 7:57:03 PM9/4/19
to jenkinsc...@googlegroups.com
peter ricardo commented on Bug JENKINS-23743
 
Re: Failure on Git Polling Log when using Linux Master and Windows Slave

Thanks for the tip, I will try here and notice about the result ...

peter.ricardo@gmail.com (JIRA)

unread,
Sep 13, 2019, 1:41:02 PM9/13/19
to jenkinsc...@googlegroups.com

The issue has been resolved by updating the client version 'git' on the slave. It went back to work after this update.

Thanks!

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

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

unread,
Sep 13, 2019, 1:48:02 PM9/13/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Not A Defect

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

unread,
Sep 13, 2019, 1:48:02 PM9/13/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages