code: private boolean checkAndSetManifestAndImagePathCandidates(String manifestPath, String candidateImagePath, ArtifactoryDependenciesClient dependenciesClient, TaskListener listener) throws IOException {
          String candidateManifest = getManifestFromArtifactory(dependenciesClient, manifestPath);
          if (candidateManifest == null) {
              return false;
          }
  
          String imageDigest = DockerUtils.getConfigDigest(candidateManifest);
          if (imageDigest.equals(imageId)) {
              manifest = candidateManifest;
              imagePath = candidateImagePath;
              return true;
          }
  
          listener.getLogger().println(String.format("Found incorrect manifest.json file in Artifactory in the following path: %s\nExpecting: %s got: %s", manifestPath, imageId, imageDigest));
          return false;
      }
docs: Check if the provided manifestPath is correct.
  Set the manifest and imagePath in case of the correct manifest.
  @param manifestPath
  @param candidateImagePath
  @param dependenciesClient
  @param listener
  @return true if found the correct manifest
  @throws IOException