This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.JsonSlurper | |
import groovy.transform.Field | |
import static groovy.time.TimeCategory.minus | |
import static javax.xml.bind.DatatypeConverter.printBase64Binary | |
@Field def params = [:] | |
@Field def nexus = [:] | |
@Field def artifactsToVersion = [:] | |
@Field def was_at_least_one_element_delete = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.sonatype.nexus.repository.storage.StorageFacet; | |
import org.sonatype.nexus.repository.storage.Query; | |
import org.joda.time.DateTime; | |
import org.joda.time.format.DateTimeFormat; | |
def fmt = DateTimeFormat.forPattern('yyyy-MM-dd HH:mm:ss'); | |
// Get a repository | |
def repo = repository.repositoryManager.get('nuget-releases'); | |
// Get a database transaction | |
def tx = repo.facet(StorageFacet).txSupplier().get(); |