IBM Support

How to get the start date/time for a deployment

Question & Answer


Question

How do you get the start date/time for a deployment using IBM uDeploy?

Answer

There are two ways to do this.

  • Use a post processing script

    The online documentation contains an example on using scanner.register to match lines via a regular expression and then doing some work with the lines matched.

    In this case the post processing script would have a block similar to

    scanner.register("<REGEX FOR LINE YOU WANT TO CAPTURE>", function(lineNumber, line) {
       //trim unwanted content from line
       properties.put("propertyName", "content from line you captured")
    });
    scanner.scan();


  • Use the post processing script itself to set the date time

    This property can be added via a line similar to the following in the post processing script

    properties.put("time", new Date().getTime().toString());
[{"Product":{"code":"SS4JV8","label":"IBM uDeploy"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM uDeploy

Software version:
5.0

Operating system(s):
Windows

Document number:
249301

Modified date:
17 June 2018

UID

swg21683162

Manage My Notification Subscriptions