How to update configuration files with UrbanCode Deploy

How often do you need to update configuration files of your applications?
Do you need to automate this process? Let me show you how to do it with uDeploy.

We have a component and we are going create a component process.

Create a Shell step and call it “Clean Working Directory”. Then create a “Download Artifacts” and a “Replace Tokens” steps with properties below.

Clean Working Directory properties

Download Artifacts properties

Replate Tokens properties:

Specify a property list in the Property List field.

For example, to use all component environment properties as tokens, specify ${p:environment/allProperties}. To use all component properties as tokens, specify ${p:component/allProperties}.

Other properties are:
${p:application/allProperties}
${p:agent/allProperties}

After Replace Tokens create “Delete Files and Directories” and “Copy Directory” steps:

Delete Files and Directories properties

The base directory is the directory where files and directories are deleted.
Include **/* specifies to delete all files.

Copy Directory properties

Source Directory is the directory to copy.

Destinations directories are the directories to copy to, separated by newline characters.
Include files is a list of pattern, separated by newline, that describe the files to copy. The default **/* include all files.

Middleware Analyst specialized on IBM UrbanCode Deploy (uDeploy), WebSphere Application Server (WAS), WebSphere MQ (WMQ), *NIX systems at CSE Consorzio Servizi Bancari – Bologna, Italy

Leave a Reply

Your email address will not be published. Required fields are marked *

12 + 15 =