@Override
 public Revision oldestRevision(Modifications modifications) {
   if (modifications.isEmpty()) {
     return new NullRevision();
   }
   Modification modification = modifications.get(modifications.size() - 1);
   return new PluggableSCMMaterialRevision(
       modification.getRevision(), modification.getModifiedTime());
 }
Beispiel #2
0
 public Revision oldestRevision(Modifications modifications) {
   if (modifications.size() > 1) {
     LOGGER.warn(
         String.format(
             "Dependency material %s has multiple modifications", this.getDisplayName()));
   }
   Modification oldestModification = modifications.get(modifications.size() - 1);
   String revision = oldestModification.getRevision();
   return DependencyMaterialRevision.create(revision, oldestModification.getPipelineLabel());
 }