Skip to content

Commit

Permalink
VAL-353 Update ManifestCheck report
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 committed May 15, 2024
1 parent f7b735e commit 5d19a5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private String validateFileNamesAgainstSource(final ListingType manifestListing,
final List<String> sourceFilePaths = inputFileService.listSourceFilePaths(build.getReleaseCenterKey(), build.getProductKey(), build.getId());
if (!CollectionUtils.isEmpty(sourceFilePaths)) {
for (final FileType fileType : fileTypes) {
final String fileName = fileType.getName().startsWith(RF2Constants.BETA_RELEASE_PREFIX)? fileType.getName().replaceFirst(RF2Constants.BETA_RELEASE_PREFIX, RF2Constants.EMPTY_SPACE) : fileType.getName();
final String fileName = (fileType.getName().startsWith(RF2Constants.BETA_RELEASE_PREFIX)? fileType.getName().replaceFirst(RF2Constants.BETA_RELEASE_PREFIX, RF2Constants.EMPTY_SPACE) : fileType.getName()).replace(RF2Constants.SNAPSHOT, RF2Constants.DELTA);
List<String> sources = fileType.getSources().getSource();
if (sources.size() == 1 && (sourceFilePaths.stream().noneMatch(item -> item.contains(sources.get(0) + S3PathHelper.SEPARATOR + fileName)))) {
String another = sourceFilePaths.stream().filter(item -> item.contains(S3PathHelper.SEPARATOR + fileName)).findFirst().orElse(null);
Expand Down

0 comments on commit 5d19a5d

Please sign in to comment.