-
Bug
-
Resolution: Fixed
-
Low
-
7.0.2
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
If Bamboo hosted in Windows and a branch with forward slash in the name is used, RSS branch specs will fail to run
Steps to Reproduce
- Install Bamboo in Windows
- Integrate Bamboo with Bitbucket Server
- Create Bitbucket Server repository in Bamboo
- Enable Specs for the repository
- Confirm that the Specs run successfully to create a Bamboo Plan
- Create a branch name "feature/testing"
- Create the branch plan for it
- Check the Specs Status for the branch "feature/testing"
Expected Results
It run successfully
Actual Results
The below exception is thrown in the specs log:
15-Apr-2020 09:36:55 </project> 15-Apr-2020 09:36:55 Directory C:\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\repository-524291-feature-Ppublish-specsFtesting\checkout\bamboo-specs extracted from the -f/--file command-line argument C:\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\repository-524291-feature%2Ftesting\checkout\bamboo-specs\specs827882519706708482.xml does not exist 15-Apr-2020 09:36:55 Unable to scan repository stash-master (524291) for Bamboo Specs 15-Apr-2020 09:36:55 com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository stash-master (524291) for Bamboo Specs 15-Apr-2020 09:36:55 at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:194) 15-Apr-2020 09:36:55 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 15-Apr-2020 09:36:55 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 15-Apr-2020 09:36:55 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 15-Apr-2020 09:36:55 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) 15-Apr-2020 09:36:55 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) 15-Apr-2020 09:36:55 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) 15-Apr-2020 09:36:55 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) 15-Apr-2020 09:36:55 at java.lang.Thread.run(Thread.java:748) 15-Apr-2020 09:36:55 Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 15-Apr-2020 09:36:55 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) 15-Apr-2020 09:36:55 at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:667) 15-Apr-2020 09:36:55 at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) 15-Apr-2020 09:36:55 at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) 15-Apr-2020 09:36:55 at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:181) 15-Apr-2020 09:36:55 ... 8 more 15-Apr-2020 09:36:55
The below exception is thrown in the atlassian-bamboo.log file:
15-Apr-2020 09:41:45 </project> 15-Apr-2020 09:41:45 Directory C:\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\repository-524291-feature-Ppublish-specsFtesting\checkout\bamboo-specs extracted from the -f/--file command-line argument C:\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\repository-524291-feature%2Ftesting\checkout\bamboo-specs\specs7196618636744155240.xml does not exist 2020-04-15 09:41:45,776 INFO [14-repository-stored-specs:pool-21-thread-1] [RepositoryStoredSpecsExecutionServiceImpl] exit code: 1 2020-04-15 09:41:45,776 INFO [14-repository-stored-specs:pool-21-thread-1] [RepositoryStoredSpecsExecutionServiceImpl] process exception: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:667) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:181) ... 2020-04-15 09:41:45,791 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-14] [BitbucketServerRssStatusUpdater] Sending RSS notification to Stash (repository: stash-master) 2020-04-15 09:41:45,854 INFO [15-BAM::SpecsDetection:pool-22-thread-1] [RssDetectionRunnable] Exception while executing RSS detection for RssDetectionWork[repository=524291,branch=feature/testing] java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository stash-master (524291) for Bamboo Specs at com.google.common.base.Throwables.propagate(Throwables.java:241) at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.generateBambooYamlsFromSpecs(RepositoryStoredSpecsExecutionServiceImpl.java:138) at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.lambda$processSpecs$0(JavaSpecsImportServiceImpl.java:64) at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:36) at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.processSpecs(JavaSpecsImportServiceImpl.java:62) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:174) at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:330) at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ... Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository stash-master (524291) for Bamboo Specs at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:194) ... 8 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:667) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:181) ... 8 more
Workaround
Remove bamboo-specs folder in the branch so that Bamboo will not run Specs build on branch plan
- mentioned in
-
Page Loading...