See below for Jenkins Setup. We are using multi-branch pipelines that utilise a jenkins shared library. the jenkins shared library has the checkout scm command in it. We are currently migrating our github repositories from github (non -enterprise cloud - so normal githun) to Github Enterprise Cloud (this is hosted by github on github.com, it is not a self hosted github enterprise server).
The checkout command works perfectly when using a username and Personal Access Token when pipelines are run against the repositories in our non enterprise github environment. However when we run the pipelines against the repos in our enterprise org on github.com it errors out. We have also duplicated the test by just creating a basic freestyle pipeline, that doesn’t use the shared library and uses the git checkout SCM plugin directly and have gotten the same error.
We have verified the token works fine by running the same clone and checkout operations directly on the jenkins agent and also on local desktops to verify that the token is valid. We are also able to use SSH as well however doing so will result in needing to upgrade the controller as our current server runs OS a version of ubuntu that doesn’t support opessh 7.6 whcih is required. We also would prefer not to ahve to get all pipelines to flip to ssh as well as making a lot of changes to our shared library. Any advice appreciated.
Details of the error on pipeline using shared library:
15:01:34 The recommended git tool is: NONE
15:01:34 using credential git-bveng-test-token
15:01:34 Cloning the remote Git repository
15:01:34 ERROR: Error cloning remote repo 'origin'
15:01:34 hudson.plugins.git.GitException: Command "git fetch --tags --progress -- git@github.com:bvengineering/curalate-bveng-curacmd-12-service.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
15:01:34 stdout:
15:01:34 stderr: git@github.com: Permission denied (publickey).
15:01:34 fatal: Could not read from remote repository.
15:01:34
15:01:34 Please make sure you have the correct access rights
15:01:34 and the repository exists.
15:01:34
15:01:34 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2674)
15:01:34 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098)
15:01:34 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
15:01:34 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
15:01:34 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:847)
15:01:34 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
15:01:34 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
15:01:34 at hudson.remoting.UserRequest.perform(UserRequest.java:211)
15:01:34 at hudson.remoting.UserRequest.perform(UserRequest.java:54)
15:01:34 at hudson.remoting.Request$2.run(Request.java:376)
15:01:34 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
15:01:34 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
15:01:34 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
15:01:34 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
15:01:34 at java.base/java.lang.Thread.run(Thread.java:829)
15:01:34 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to static-jenkins-agent-default-prod-java8-01
15:01:34 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
15:01:34 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
15:01:34 at hudson.remoting.Channel.call(Channel.java:1000)
15:01:34 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
15:01:34 at jdk.internal.reflect.GeneratedMethodAccessor347.invoke(Unknown Source)
15:01:34 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:01:34 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
15:01:34 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
15:01:34 at com.sun.proxy.$Proxy98.execute(Unknown Source)
15:01:34 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)
15:01:34 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
15:01:34 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
15:01:34 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
15:01:34 at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
15:01:34 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
15:01:34 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
15:01:34 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
15:01:34 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
15:01:34 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
15:01:34 at java.base/java.lang.Thread.run(Thread.java:829)
[Pipeline] echo
15:01:34 Unable to initialize! : hudson.AbortException: Error cloning remote repo 'origin'
Details of the error on the basic pipeline:
Started by user Shane O'Hanlon
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on static-jenkins-agent-default-prod-java8-01 (default prod java8) in workspace /home/ubuntu/workspace/sohan-test-pipeline-git-pat
The recommended git tool is: NONE
using credential git-bveng-test-token
> git rev-parse --resolve-git-dir /home/ubuntu/workspace/sohan-test-pipeline-git-pat/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git # timeout=10
Fetching upstream changes from https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git
> git --version # timeout=10
> git --version # 'git version 2.18.0'
using GIT_ASKPASS to set credentials git-bveng-test-token
> git fetch --tags --progress -- https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1003)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1244)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
at hudson.scm.SCM.checkout(SCM.java:540)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1239)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
at hudson.model.Run.execute(Run.java:1899)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress -- https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: remote: Repository not found.
fatal: repository 'https://github.com/bvengineering/curalate-bveng-curacmd-12-service.git/' not found
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2674)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to static-jenkins-agent-default-prod-java8-01
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1000)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
at jdk.internal.reflect.GeneratedMethodAccessor347.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
at com.sun.proxy.$Proxy112.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1244)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
at hudson.scm.SCM.checkout(SCM.java:540)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1239)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
at hudson.model.Run.execute(Run.java:1899)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
ERROR: Error fetching remote repo 'origin'
Jenkins setup:
Jenkins: 2.362
OS: Linux - 4.4.0-148-generic
Java: 11.0.14 - Ubuntu (OpenJDK 64-Bit Server VM)
Jenkins version 2.362
That is over 2 years old and also your plugins are quite old then.
Even when this turns out to be a bug anywhere this would only be fixed in the latest version of the faulty plugin which will most likely require that you update your Jenkins instance to a recent version.
Thanks for the feedback. I understand that however the origin for scam we are running is from 2024. The plugin also works for non enterprise GitHub.com. So it does seem specific to the plugin. Outside of doing an upgrade which isn’t feasible right now, any other thoughts?
I think that you could create a separate, disposable installation that uses the current Jenkins version and current plugin versions and check that the problem is resolved in the most recent version. If the problem is resolved in the most recent revision, then you have another reason to upgrade. If the problem is not resolved in the most recent revision, you have enough information to submit a bug report.
Thanks again Mark. That’s a good plan. I’m hoping an upgrade could be the solution here as I’ve seen things like that before were being in the latest version tends to sort out issues. I will work on this and come back to you as soon as I’ve tested.
Hey @MarkEWaite
As advised i spun up a new jenkins based off of our production instance and upgraded it to the latest jenkins at the time which is 2.492. We are getting the same error in the pipeline when trying to use checkout scm to pull from github enterprise cloud. Thanks.
Started by user unknown or anonymous
11:26:24 Connecting to https://api.github.com using token/****** (The github XXXXXXXXXX PAT token from bot user token. XXXXXXXXXX PAT token for Jenkins Curalate)
Obtained Jenkinsfile from d36353b7f6851398501389de87952588a50b00a7
Loading library BuildUtils@master
Examining curalate/jenkins-pipeline
Attempting to resolve master as a branch
Resolved master as branch master at revision da5294d5a09554c4167f1b0030a220ffe34d09c6
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential curalatebot-github
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/YYYYYYYYYY_master@libs/8c41ca8fdcded5ccc0952cd283bf5f68adcdad0328709480d89e441a33b38acd/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/curalate/jenkins-pipeline.git # timeout=10
Fetching upstream changes from https://github.com/curalate/jenkins-pipeline.git
> git --version # timeout=10
> git --version # 'git version 1.9.1'
using GIT_ASKPASS to set credentials Auth Token for user curalatebot on github
> git fetch --tags --progress https://github.com/curalate/jenkins-pipeline.git +refs/heads/master:refs/remotes/origin/master # timeout=10
Checking out Revision da5294d5a09554c4167f1b0030a220ffe34d09c6 (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f da5294d5a09554c4167f1b0030a220ffe34d09c6 # timeout=10
Commit message: "chore: Assign DevEx owners in cura.meta.yml [PD-236076]"
[Pipeline] Start of Pipeline
[Pipeline] properties
[Pipeline] echo
Building with config = BuildConfig{deployableBranches=main|master|release|development, infraRoot= .infra}
[Pipeline] node
Running on static-jenkins-agent-default-prod-java8-01-test
in /home/ubuntu/workspace/YYYYYYYYYY_master_2
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] sh
11:26:36 + sudo find /home/ubuntu/workspace/YYYYYYYYYY_master_2/ -mindepth 1 -delete
[Pipeline] checkout
11:26:36 The recommended git tool is: NONE
11:26:38 using credential token-XXXXXXXXXX
11:26:38 Cloning the remote Git repository
11:26:38 Cloning with configured refspecs honoured and without tags
11:26:38 ERROR: Error cloning remote repo 'origin'
11:26:38 hudson.plugins.git.GitException: Command "git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master" returned status code 128:
11:26:38 stdout:
11:26:38 stderr: remote: Repository not found.
11:26:38 fatal: repository 'https://github.com/XXXXXXXXXX/YYYYYYYYYY.git/' not found
11:26:38
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2848)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2184)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:877)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:170)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
11:26:38 at hudson.remoting.UserRequest.perform(UserRequest.java:225)
11:26:38 at hudson.remoting.UserRequest.perform(UserRequest.java:50)
11:26:38 at hudson.remoting.Request$2.run(Request.java:391)
11:26:38 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
11:26:38 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:38 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
11:26:38 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:38 at java.base/java.lang.Thread.run(Thread.java:833)
11:26:38 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to static-jenkins-agent-default-prod-java8-01-test
11:26:38 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1923)
11:26:38 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
11:26:38 at hudson.remoting.Channel.call(Channel.java:1112)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
11:26:38 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:26:38 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
11:26:38 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:26:38 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
11:26:38 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:138)
11:26:38 at PluginClassLoader for git-client/jdk.proxy118/jdk.proxy118.$Proxy209.execute(Unknown Source)
11:26:38 at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)
11:26:38 at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311)
11:26:38 at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
11:26:38 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
11:26:38 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
11:26:38 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
11:26:38 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
11:26:38 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
11:26:38 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:38 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
11:26:38 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:38 at java.base/java.lang.Thread.run(Thread.java:831)
11:26:38 ERROR: Error cloning remote repo 'origin'
11:26:38 Retrying after 10 seconds
11:26:38 Cloning repository https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:38 > git init /home/ubuntu/workspace/YYYYYYYYYY_master_2 # timeout=10
11:26:38 Fetching upstream changes from https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:38 > git --version # timeout=10
11:26:38 > git --version # 'git version 2.18.0'
11:26:38 using GIT_ASKPASS to set credentials The github XXXXXXXXXX PAT token from bot user token. XXXXXXXXXX PAT token for Jenkins Curalate
11:26:38 > git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master # timeout=10
11:26:48 The recommended git tool is: NONE
11:26:48 using credential token-XXXXXXXXXX
11:26:48 Fetching changes from the remote Git repository
11:26:48 Fetching without tags
11:26:49 ERROR: Error fetching remote repo 'origin'
11:26:49 hudson.plugins.git.GitException: Failed to fetch from https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
11:26:49 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
11:26:49 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
11:26:49 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:49 at java.base/java.lang.Thread.run(Thread.java:831)
11:26:49 Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master" returned status code 128:
11:26:49 stdout:
11:26:49 stderr: remote: Repository not found.
11:26:49 fatal: repository 'https://github.com/XXXXXXXXXX/YYYYYYYYYY.git/' not found
11:26:49
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2848)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2184)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:170)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
11:26:49 at hudson.remoting.UserRequest.perform(UserRequest.java:225)
11:26:49 at hudson.remoting.UserRequest.perform(UserRequest.java:50)
11:26:49 at hudson.remoting.Request$2.run(Request.java:391)
11:26:49 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
11:26:49 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:49 at java.base/java.lang.Thread.run(Thread.java:833)
11:26:49 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to static-jenkins-agent-default-prod-java8-01-test
11:26:49 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1923)
11:26:49 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
11:26:49 at hudson.remoting.Channel.call(Channel.java:1112)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
11:26:49 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:26:49 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
11:26:49 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:26:49 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
11:26:49 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:138)
11:26:49 at PluginClassLoader for git-client/jdk.proxy118/jdk.proxy118.$Proxy212.execute(Unknown Source)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311)
11:26:49 at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
11:26:49 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
11:26:49 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
11:26:49 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
11:26:49 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
11:26:49 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:49 at java.base/java.lang.Thread.run(Thread.java:831)
11:26:49 ERROR: Error fetching remote repo 'origin'
11:26:49 Retrying after 10 seconds
11:26:48 > git rev-parse --resolve-git-dir /home/ubuntu/workspace/YYYYYYYYYY_master_2/.git # timeout=10
11:26:48 > git config remote.origin.url https://github.com/XXXXXXXXXX/YYYYYYYYYY.git # timeout=10
11:26:48 Fetching upstream changes from https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:48 > git --version # timeout=10
11:26:48 > git --version # 'git version 2.18.0'
11:26:48 using GIT_ASKPASS to set credentials The github XXXXXXXXXX PAT token from bot user token. XXXXXXXXXX PAT token for Jenkins Curalate
11:26:48 > git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master # timeout=10
11:26:59 The recommended git tool is: NONE
11:26:59 using credential token-XXXXXXXXXX
11:26:59 Fetching changes from the remote Git repository
11:26:59 Fetching without tags
11:26:59 ERROR: Error fetching remote repo 'origin'
11:26:59 hudson.plugins.git.GitException: Failed to fetch from https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
11:26:59 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
11:26:59 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
11:26:59 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:59 at java.base/java.lang.Thread.run(Thread.java:831)
11:26:59 Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master" returned status code 128:
11:26:59 stdout:
11:26:59 stderr: remote: Repository not found.
11:26:59 fatal: repository 'https://github.com/XXXXXXXXXX/YYYYYYYYYY.git/' not found
11:26:59
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2848)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2184)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:170)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
11:26:59 at hudson.remoting.UserRequest.perform(UserRequest.java:225)
11:26:59 at hudson.remoting.UserRequest.perform(UserRequest.java:50)
11:26:59 at hudson.remoting.Request$2.run(Request.java:391)
11:26:59 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
11:26:59 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:59 at java.base/java.lang.Thread.run(Thread.java:833)
11:26:59 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to static-jenkins-agent-default-prod-java8-01-test
11:26:59 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1923)
11:26:59 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
11:26:59 at hudson.remoting.Channel.call(Channel.java:1112)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
11:26:59 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:26:59 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
11:26:59 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:26:59 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
11:26:59 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:138)
11:26:59 at PluginClassLoader for git-client/jdk.proxy118/jdk.proxy118.$Proxy212.execute(Unknown Source)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311)
11:26:59 at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
11:26:59 at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
11:26:59 at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
11:26:59 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
11:26:59 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
11:26:59 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:26:59 at java.base/java.lang.Thread.run(Thread.java:831)
11:26:59 ERROR: Error fetching remote repo 'origin'
11:26:59 ERROR: Maximum checkout retry attempts reached, aborting
[Pipeline] sh
11:26:59 + sudo find /home/ubuntu/workspace/YYYYYYYYYY_master_2/ -mindepth 1 -delete
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
11:26:59 > git rev-parse --resolve-git-dir /home/ubuntu/workspace/YYYYYYYYYY_master_2/.git # timeout=10
11:26:59 > git config remote.origin.url https://github.com/XXXXXXXXXX/YYYYYYYYYY.git # timeout=10
11:26:59 Fetching upstream changes from https://github.com/XXXXXXXXXX/YYYYYYYYYY.git
11:26:59 > git --version # timeout=10
11:26:59 > git --version # 'git version 2.18.0'
11:26:59 using GIT_ASKPASS to set credentials The github XXXXXXXXXX PAT token from bot user token. XXXXXXXXXX PAT token for Jenkins Curalate
11:26:59 > git fetch --no-tags --progress -- https://github.com/XXXXXXXXXX/YYYYYYYYYY.git +refs/heads/master:refs/remotes/origin/master # timeout=10
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Error fetching remote repo 'origin'
GitHub has been notified of this commit’s build result
Finished: FAILURE