Hi,
I have Windows Server 2012 R2 running as a Bamboo Agent. I am facing problem checking out source from git:
simple 18-Jun-2019 08:36:35 Build Media - Media Sorter - Default Job #2 (MDA-MS-JOB1-2) started building on agent OKPRDXY3601 simple 18-Jun-2019 08:36:35 Build working directory is C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1 simple 18-Jun-2019 08:36:35 Executing build Media - Media Sorter - Default Job #2 (MDA-MS-JOB1-2) simple 18-Jun-2019 08:36:35 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 18-Jun-2019 08:36:35 Updating source code to revision: f1450794b25090c34703d437ced58051bf588eee simple 18-Jun-2019 08:36:35 Creating local git repository in 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1\.git'. simple 18-Jun-2019 08:36:35 Initialized empty Git repository in C:/Users/devadmin/bamboo-agent-home/xml-data/build-dir/MDA-MS-JOB1/.git/ error 18-Jun-2019 08:36:35 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] simple 18-Jun-2019 08:36:35 Warning: failed to checkout source code to directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1', trying to recover... simple 18-Jun-2019 08:36:35 Cleaned source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'... simple 18-Jun-2019 08:36:35 Creating local git repository in 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1\.git'. simple 18-Jun-2019 08:36:35 Initialized empty Git repository in C:/Users/devadmin/bamboo-agent-home/xml-data/build-dir/MDA-MS-JOB1/.git/ error 18-Jun-2019 08:36:35 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] simple 18-Jun-2019 08:36:35 Updating source code to revision: f1450794b25090c34703d437ced58051bf588eee error 18-Jun-2019 08:36:35 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] simple 18-Jun-2019 08:36:35 Warning: failed to checkout source code to directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1', trying to recover... simple 18-Jun-2019 08:36:35 Cleaned source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'... simple 18-Jun-2019 08:36:35 Creating local git repository in 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1\.git'. simple 18-Jun-2019 08:36:35 Initialized empty Git repository in C:/Users/devadmin/bamboo-agent-home/xml-data/build-dir/MDA-MS-JOB1/.git/ error 18-Jun-2019 08:36:35 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] simple 18-Jun-2019 08:36:36 Updating source code to revision: f1450794b25090c34703d437ced58051bf588eee error 18-Jun-2019 08:36:36 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] simple 18-Jun-2019 08:36:36 Warning: failed to checkout source code to directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1', trying to recover... simple 18-Jun-2019 08:36:36 Cleaned source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'... simple 18-Jun-2019 08:36:36 Creating local git repository in 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1\.git'. simple 18-Jun-2019 08:36:36 Initialized empty Git repository in C:/Users/devadmin/bamboo-agent-home/xml-data/build-dir/MDA-MS-JOB1/.git/ error 18-Jun-2019 08:36:37 Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr:['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] error 18-Jun-2019 08:36:37 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 18-Jun-2019 08:36:37 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr: error 18-Jun-2019 08:36:37 ['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:172) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:73) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 18-Jun-2019 08:36:37 at java.lang.Thread.run(Unknown Source) error 18-Jun-2019 08:36:37 Caused by: com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch '(unresolved) develop' from 'git@bitbucket.org:cesoftware/media_sorter.git' to source directory 'C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1'. com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr: error 18-Jun-2019 08:36:37 ['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:425) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.GitRepository.retrieveSourceCode(GitRepository.java:439) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:252) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:56) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:177) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:173) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) error 18-Jun-2019 08:36:37 ... 15 more error 18-Jun-2019 08:36:37 Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr: error 18-Jun-2019 08:36:37 ['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:139) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:143) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:500) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.resolveBranch(NativeGitOperationHelper.java:435) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:399) error 18-Jun-2019 08:36:37 ... 21 more error 18-Jun-2019 08:36:37 Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files\Git\cmd\git.exe' ls-remote git@bitbucket.org:cesoftware/media_sorter.git failed with code 128. Working directory was [C:\Users\devadmin\bamboo-agent-home\xml-data\build-dir\MDA-MS-JOB1]., stderr: error 18-Jun-2019 08:36:37 ['ssh' is not recognized as an internal or external command,, operable program or batch file., fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.] error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:551) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:418) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:488) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper$1.call(NativeGitOperationHelper.java:479) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:52) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:48) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache.get(LocalCache.java:3965) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) error 18-Jun-2019 08:36:37 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:81) error 18-Jun-2019 08:36:37 at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:135) error 18-Jun-2019 08:36:37 ... 25 more error 18-Jun-2019 08:36:37 Failed to prepare the build 'Media - Media Sorter - Default Job #2 (MDA-MS-JOB1-2)' simple 18-Jun-2019 08:36:37 Running on server: post build plugin 'Clover Delta Calculator' simple 18-Jun-2019 08:36:37 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 18-Jun-2019 08:36:37 Running on server: post build plugin 'NCover Results Collector' simple 18-Jun-2019 08:36:37 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 18-Jun-2019 08:36:37 All post build plugins have finished simple 18-Jun-2019 08:36:37 Generating build results summary... simple 18-Jun-2019 08:36:37 Saving build results to disk... simple 18-Jun-2019 08:36:37 Indexing build results... simple 18-Jun-2019 08:36:37 Finished building MDA-MS-JOB1-2.
Hi @fjkum,
The first thing I'm seeing in your log file multiple times is:
'ssh' is not recognized as an internal or external command
Have you installed git on that windows machine? And does the Bamboo Agent have git as a capability so that it knows how to connect to the repository correctly?
I hope that helps.
-James
I'm glad you were able to get it working!
-James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.