I am using GIT. In the repository, in the Branch, I have 4 different Visual Studio project folders. Instead of getting everything in the branch, I just want to get one of the project folders (instead of all four of them,,,To speed things up, and save on using disk space up). How to do this? Can I say "LousBranch\App1", to get that one project folder, or, do I have to create another branch in GIT, with just APP1 in it, and use that branch?
Community moderators have prevented the ability to post new answers.
A little more information. When I was talking "projects", I should have said 'Visual Studio Solutions'. So, you have a Project\Product that is made up of three different solutions. They are all stored in the same GIT branch (they belong to the same project). It makes no sense to me to have each solution in a separate branch. There are three solutions, each in it's own folder\directory in that one branch. I want to create a separate plan for each of the solutions, and thus for the first one, I only want to pull the folder that contains sln1, and not pull the sln2 and sln3 folders from GIT. I have tried all kinds of things in the Linked Repository\Advanced\Include,Exclude, but it keeps pulling all three folders. Can you give me the exact regular expression to use?
What about this...https://confluence.atlassian.com/fisheye/include-exclude-paths-298976903.html (and then you need to stop and start Bamboo?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the include, have had nothing but errors since...
simple 02-Sep-2016 12:10:28 Build MainProject - Winforms3 - Default Job #3 (MP-WIN3-JOB1-3) started building on agent Default Agent simple 02-Sep-2016 12:10:28 simple 02-Sep-2016 12:10:28 Build working directory is C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1 simple 02-Sep-2016 12:10:28 Executing build MainProject - Winforms3 - Default Job #3 (MP-WIN3-JOB1-3) simple 02-Sep-2016 12:10:28 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 02-Sep-2016 12:10:28 Updating source code to revision: 155da22d94b1713e97136bfa78f771ebd7aef7cb simple 02-Sep-2016 12:10:28 Fetching 'refs/heads/LousBranch' from 'C:\Users\Tester\Documents\Visual Studio 2015\Projects\.git'. simple 02-Sep-2016 12:10:28 Git: Updating references simple 02-Sep-2016 12:10:28 Git: simple 02-Sep-2016 12:10:28 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. error 02-Sep-2016 12:10:28 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. simple 02-Sep-2016 12:10:28 Warning: failed to checkout source code to directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1', trying to recover... simple 02-Sep-2016 12:10:28 Cleaned source directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1'... simple 02-Sep-2016 12:10:28 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. simple 02-Sep-2016 12:10:28 Creating local git repository in 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1\.git'. error 02-Sep-2016 12:10:28 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. simple 02-Sep-2016 12:10:28 Updating source code to revision: 155da22d94b1713e97136bfa78f771ebd7aef7cb simple 02-Sep-2016 12:10:29 Fetching 'refs/heads/LousBranch' from 'C:\Users\Tester\Documents\Visual Studio 2015\Projects\.git'. simple 02-Sep-2016 12:10:29 Git: Updating references simple 02-Sep-2016 12:10:29 Git: simple 02-Sep-2016 12:10:29 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. error 02-Sep-2016 12:10:29 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. simple 02-Sep-2016 12:10:29 Warning: failed to checkout source code to directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1', trying to recover... simple 02-Sep-2016 12:10:29 Cleaned source directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1'... simple 02-Sep-2016 12:10:29 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. simple 02-Sep-2016 12:10:29 Creating local git repository in 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1\.git'. error 02-Sep-2016 12:10:29 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. simple 02-Sep-2016 12:10:29 Updating source code to revision: 155da22d94b1713e97136bfa78f771ebd7aef7cb simple 02-Sep-2016 12:10:29 Fetching 'refs/heads/LousBranch' from 'C:\Users\Tester\Documents\Visual Studio 2015\Projects\.git'. simple 02-Sep-2016 12:10:29 Git: Updating references simple 02-Sep-2016 12:10:29 Git: simple 02-Sep-2016 12:10:29 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. error 02-Sep-2016 12:10:29 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. simple 02-Sep-2016 12:10:29 Warning: failed to checkout source code to directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1', trying to recover... simple 02-Sep-2016 12:10:29 Cleaned source directory 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1'... simple 02-Sep-2016 12:10:29 Checking out revision 155da22d94b1713e97136bfa78f771ebd7aef7cb. simple 02-Sep-2016 12:10:29 Creating local git repository in 'C:\Users\Tester\bamboo-home\xml-data\build-dir\MP-WIN3-JOB1\.git'. error 02-Sep-2016 12:10:29 Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed. error 02-Sep-2016 12:10:29 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 02-Sep-2016 12:10:29 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: MP-WIN3-JOB1-3: Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed.Source 'C:\Users\Tester\bamboo-home\xml-data\build-dir\_git-repositories-cache\13fbd2dfa6c6d4a61ccf724b7468fcbfcdea41ed\.git\refs\tags' does not exist error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:144) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$201(TaskExecutorImpl.java:317) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.task.TaskExecutorImpl$$Lambda$279/299124995.call(Unknown Source) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:93) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:77) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 02-Sep-2016 12:10:29 at java.lang.Thread.run(Thread.java:745) error 02-Sep-2016 12:10:29 Caused by: com.atlassian.bamboo.repository.RepositoryException: MP-WIN3-JOB1-3: Checkout to revision 155da22d94b1713e97136bfa78f771ebd7aef7cb has failed.Source 'C:\Users\Tester\bamboo-home\xml-data\build-dir\_git-repositories-cache\13fbd2dfa6c6d4a61ccf724b7468fcbfcdea41ed\.git\refs\tags' does not exist error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.JGitOperationHelper.checkout(JGitOperationHelper.java:313) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.GitRepository$2.call(GitRepository.java:493) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.GitRepository$2.call(GitRepository.java:460) error 02-Sep-2016 12:10:29 at io.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:293) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.GitRepository.retrieveSourceCode(GitRepository.java:459) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:256) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:56) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:149) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:145) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) error 02-Sep-2016 12:10:29 ... 21 more error 02-Sep-2016 12:10:29 Caused by: java.io.FileNotFoundException: Source 'C:\Users\Tester\bamboo-home\xml-data\build-dir\_git-repositories-cache\13fbd2dfa6c6d4a61ccf724b7468fcbfcdea41ed\.git\refs\tags' does not exist error 02-Sep-2016 12:10:29 at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1368) error 02-Sep-2016 12:10:29 at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1261) error 02-Sep-2016 12:10:29 at org.apache.commons.io.FileUtils.copyDirectoryToDirectory(FileUtils.java:1202) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.JGitOperationHelper.createLocalRepository(JGitOperationHelper.java:714) error 02-Sep-2016 12:10:29 at com.atlassian.bamboo.plugins.git.JGitOperationHelper.checkout(JGitOperationHelper.java:297) error 02-Sep-2016 12:10:29 ... 30 more error 02-Sep-2016 12:10:29 Failed to prepare the build 'MainProject - Winforms3 - Default Job #3 (MP-WIN3-JOB1-3)' simple 02-Sep-2016 12:10:29 Running on server: post build plugin 'NCover Results Collector' simple 02-Sep-2016 12:10:30 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 02-Sep-2016 12:10:30 Running on server: post build plugin 'Clover Delta Calculator' simple 02-Sep-2016 12:10:30 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 02-Sep-2016 12:10:30 All post build plugins have finished simple 02-Sep-2016 12:10:30 Generating build results summary... simple 02-Sep-2016 12:10:30 Saving build results to disk... simple 02-Sep-2016 12:10:30 Logging substituted variables... simple 02-Sep-2016 12:10:30 Indexing build results... simple 02-Sep-2016 12:10:30 Finished building MP-WIN3-JOB1-3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For modules support you need to use native git and not built-in git implementation: https://confluence.atlassian.com/display/BAMBOO/Git
In case you'll run into authentication problems please consult https://confluence.atlassian.com/bamkb/checkout-of-git-repository-with-submodules-failed-586056672.html
If you need more help then please contact our Support and provide them with more details:
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you should keep each of those projects in a separate repository. You can then use Bamboo to checkout from all 4 repositories if needed. You can also use Git submodules to combine those repositories.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.