Creating custom deploy targets, Example of output form make clean-all – HP Integrity NonStop H-Series User Manual

Page 114

Advertising
background image

Figure 79 Example of output form make clean-all

Creating custom deploy targets

You can create custom deploy targets for both local managed and makefile projects. The advantage
of creating custom deploy targets is that, if you use, for example, sftp (an Open SSH program
for file transfers available with Cygwin), you can create much more flexible and complex deploy
targets.

This section provides sample steps for creating a custom deploy target for a managed project
named Car that transfers an executable to OSS, sets permissions on the file, and runs sftp's ls
command to show the permissions set. This section also describes how to create similar deploy
targets for Guardian using sftp.

Using sftp in a deploy target requires setting up passphrase authentication so that sftp can
connect in batch mode without requesting a password from you. For information on setting up
passphrase authentication, see

“Tips on setting up password free logins with Open SSH” (page 153)

.

The following steps are specific to projects using managed builds; however, the steps for makefile
projects are the same if you use your own makefile instead of makefile.targets.

To create a custom deploy target for the project Car, perform the following steps from the NonStop
Development perspective:

1.

Select the Car project in the NonStop Project Explorer view.

2.

Select Properties from the context menu for the NonStop Project Explorer view to open the
Properties page for the Car project.

3.

Select Settings (Remote) on the left to open the Settings (Remote) property page on the right.

4.

In the Deploy Target Settings group box of the Settings (Remote) page, change the Deploy
target: field from deploy to custom_deploy, as in

Figure 80 (page 115)

. This will cause

the Deploy Project action on the context menu of the NonStop Project Explorer view to issue
the command make custom_deploy instead of make deploy.

114

Tasks

Advertising
This manual is related to the following products: