Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.4.1
Description
Because the file specification which defines a temp location of the ssh key are static, this causes builds started simultaneously to hang as one build will clear the file after its run. This is specified as thus in the HgRepositoryAccessImpl.java file:
public final static SecureTemporaryFiles.TemporaryFileSpec TEMPORARY_FILE_SPEC = SecureTemporaryFiles.builder() .setPrefix("bambooHg") .setSuffix(".tmp") .useShortDirectoryName() .failWhenPermissionsNotSet() .build(); @NotNull File createTmpFileWithKey() throws IOException, InterruptedException { final File file = SecureTemporaryFiles.create(TEMPORARY_FILE_SPEC); FileUtils.writeStringToFile(file, substitutedAccessData.getSshKey()); return file; }
Attachments
Issue Links
- was cloned as
-
BDEV-4536 Loading...