Groovy script which uses properties to mark artifacts (e.g tested, releasable, production) and then deletes old artifacts based on number in each state