Is it possible via CLI to delete all but 10 of the last deployments to a destination in JBoss ON?

Solution Verified - Updated -

Issue

  • I would like to write a JBoss ON CLI JS script to delete older versions of deployed bundles to a specific destination. I want to keep only the last 10 deployments. Is this possible?

Environment

  • Red Hat JBoss Operations Network (ON) 3.1.2
  • JBoss ON Command Line Interface (CLI) 3.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.