DevOps Automation

DevOps Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#DevOps
 View Only

IBM UrbanCode Deploy 7.2.3 - Java Distribution Management - Uploading Java Packages

By Osman Burucu posted Fri July 08, 2022 09:06 AM

  
IBM UrbanCode Deploy 7.2.3 provides the Java Distribution Management feature for easier maintenance of Java packages on your agent devices. You can find HERE the blog how to use it. In this blog I want to show how easy it is to upload new Java packages onto your IBM UrbanCode Deploy server.

The new Java Management feature can be found in Settings -> System -> Manage Java Packages
Here select "Add Package" button to get a dialog for uploading a new Java Package.


Press Submit and wait till it is uploaded to your IBM UrbanCode Deploy Server.

Another (in my humble opinion a more efficient way) is to use either the udclient or the REST interface. In this example I have used the udclient. Please have a look at the documentation of the command and its parameter.

I use an token for authorization against my server, provide a meaningful name of the Java Package (else the system will generate a generic name which is not always easy to understand what Java package it is).

> udclient -authtoken c9b2dczc-15ax-4cf9-8aa2-0c17f4622c17 -weburl https://ucd.demo.com:8443 addJavaPackage -name OpenJDK-17-windows JAVA/OpenJDK17U-jdk_x64_windows_hotspot_17.0.3_7.zip

This will then return a json with the detailed information about the newly uploaded Java Package:
{

"id": "f231d1e3-2786-474a-93f9-390fa98d0a6f",
"name": "OpenJDK-17-windows-595e361d1bbb627f",
"os": "WINDOWS",
"cpu": "X86_64",
"format": "ZIP",
"version": 17,
"createdDate": 1657284299521,
"sizeOnDisk": 188850176,
"preferred": false
}


#UrbanCodeDeploy
0 comments
8 views

Permalink