[JENKINS-32712] Job with Git polling "succeeds" with "no changes" although the Git polling failed
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza en GitSCM.compareRemoteRevisionWith y sigue la ruta de polling a través de SCM.poll; después inspecciona CliGitAPIImpl.getHeadRev y el flujo de excepciones mostrado. Reproduce el caso fallido de ls-remote y rastrea por qué el polling termina con “No changes”; el trabajo estará terminado cuando el fallo se informe como un error de polling en lugar de como un resultado correcto sin cambios, con cobertura de regresión para este comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Reproduction:
- Take a working job with Git SCM Polling enabled (with the fast / "ls-remote" method)
- Provoke an error in the origin response (e.g. see Log below)
- Git Polling ends with "No changes"
The Job stays at "blue" (successful) although the Polling clearly had errors --> the not working job might stay undiscovered quite long
Git Polling Log:
Started on Jan 31, 2016 10:00:00 PM Using strategy: Default [poll] Last Built Revision: Revision 1231223345345345345345345345345345345543 (refs/remotes/origin/master) using GIT_SSH to set credentials SSH Key for someUser > git --version # timeout=10 > git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1 # timeout=10 FATAL: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 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:529) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject._poll(AbstractProject.java:1452) at hudson.model.AbstractProject.poll(AbstractProject.java:1355) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 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:1693) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1441) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1335) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1326) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2435) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:583) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:527) ... 12 more Done. Took 0.42 sec No changes
Originally reported by michaelf, imported from: Job with Git polling "succeeds" with "no changes" although the Git polling failed
- status: Open
- priority: Minor
- component(s): git-client-plugin
- resolution: Unresolved
- votes: 4
- watchers: 8
- imported: 20251211-071809
Raw content of original issue
Reproduction:
- Take a working job with Git SCM Polling enabled (with the fast / "ls-remote" method)
- Provoke an error in the origin response (e.g. see Log below)
- Git Polling ends with "No changes"
The Job stays at "blue" (successful) although the Polling clearly had errors --> the not working job might stay undiscovered quite long
Git Polling Log:
Started on Jan 31, 2016 10:00:00 PM Using strategy: Default [poll] Last Built Revision: Revision 1231223345345345345345345345345345345543 (refs/remotes/origin/master) using GIT_SSH to set credentials SSH Key for someUser > git --version # timeout=10 > git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1 # timeout=10 FATAL: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. hudson.util.IOException2: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 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:529) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject._poll(AbstractProject.java:1452) at hudson.model.AbstractProject.poll(AbstractProject.java:1355) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 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:1693) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1441) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1335) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1326) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2435) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:583) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:527) ... 12 more Done. Took 0.42 sec No changes
environment
Jenkins ver. 1.625.2<br/>
Git Plugin 2.4.1<br/>
Gerrit repository on the origin side with SSH authentification
- Lenguaje dominante
- Java
- Estrellas
- 152
- Forks
- 404
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jenkinsci/git-client-plugin
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
jenkinsci/git-client-plugin#1807 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
jenkinsci/git-client-plugin#1785 ·
-
Separate command line options from arguments with a double dashQuizá libre de nuevo @vidhumahajan la tomó hace 22 días y no hay ningún pull request abierto. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
jenkinsci/git-client-plugin#1780 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
jenkinsci/git-client-plugin#1764 · 5 comentarios · 1 reacción ·
-
Dependency DashboardAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
jenkinsci/git-client-plugin#1737 ·
Todos los issues de jenkinsci/git-client-plugin
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
btraceio/jafar#228 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-templates triage:bot-seen triage:needs-human
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/aspire#22356 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/flink-agents#1395 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
floci-io/floci#8666 · 1 comentario ·
Los mantenedores suelen responder en 1 día