jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
506 stars 612 forks source link

ERROR: Error fetching remote repo #745

Open asgarma opened 5 years ago

asgarma commented 5 years ago

I am using Azure Repository to save the source code. I am trying to download through GIT and i am getting an error.

image

Through Jenkins i am downloading the code and i getting error

[EnvInject] - Loading node environment variables. Building in workspace C:\Jenkins\workspace\j1 No credentials specified

C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository C:\Program Files\Git\bin\git.exe config remote.SanityTestCases.url https://cnxsiqa@dev.azure.com/cnxsiqa/AutomationTestCases/_git/SanityTestCases # timeout=10 Fetching upstream changes from https://cnxsiqa@dev.azure.com/cnxsiqa/AutomationTestCases/_git/SanityTestCases C:\Program Files\Git\bin\git.exe --version # timeout=10 C:\Program Files\Git\bin\git.exe fetch --tags --force --progress https://cnxsiqa@dev.azure.com/cnxsiqa/AutomationTestCases/_git/SanityTestCases AutomationTestCases ERROR: Error fetching remote repo 'SanityTestCases' hudson.plugins.git.GitException: Failed to fetch from https://cnxsiqa@dev.azure.com/cnxsiqa/AutomationTestCases/_git/SanityTestCases at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:894) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1161) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1816) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --force --progress https://cnxsiqa@dev.azure.com/cnxsiqa/AutomationTestCases/_git/SanityTestCases AutomationTestCases" returned status code 128: stdout: stderr: fatal: couldn't find remote ref AutomationTestCases

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:892)
... 11 more

ERROR: Error fetching remote repo 'SanityTestCases' Finished: FAILURE