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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content