| 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 |