Skip to content

Instantly share code, notes, and snippets.

@tsegismont
Last active December 25, 2015 04:38
Show Gist options
  • Select an option

  • Save tsegismont/6918317 to your computer and use it in GitHub Desktop.

Select an option

Save tsegismont/6918317 to your computer and use it in GitHub Desktop.
createBundleVersion
/**
* A simple function to create a new bundle version from a zip file containing
* the bundle.
*
* @param pathToBundleZipFile the path to the bundle on the local file system
*
* @return an instance of BundleVersion class describing what's been created on
* the RHQ server.
*/
function createBundleVersion(pathToBundleZipFile) {
var contentHandle = scriptUtil.uploadContent(pathToBundleZipFile);
return BundleManager.createBundleVersionViaContentHandle(contentHandle);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment