Deployment Info

Chris Kelleher

Administrator
Staff member
During the deployment stage, the 'progress window' gives you a nice amount
of detail about what versions of objects are being deployed.

This info would be very useful to include a part of the actual deployment -
especially if this could be produce automatically.

Does anyone know a way of extracting this information at deployment time
(i.e. for generating Deployment Release Note information). I notice that,
sadly, the deploy hooks in rtp_evnt do not have any parameters to identify
the what deployment is being carried out (i.e. workspace, deployment
number).


Thanks in advance.

Simon Gellion

=================================================
AppStation Ltd. simon.gellion@appstation.com
C14 Taylors Court http://www.appstation.com
Rotherham phone : +44 (0)1709 710996
S62 6NU U.K. fax : +44 (0)1709 710040
 

Chris Kelleher

Administrator
Staff member
Simon, for object version information, run a release report. Make sure you
select version info and enter the release range of your deployment.

Dont forget this report can also be modified.
 

Chris Kelleher

Administrator
Staff member
Simon,

The following is an extract of some code from a routine that we use to do a
similar job. You could modify it to suit your needs. Hope it helps.

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
/* start */
/* run from rtb_evnt.p when DEPLOY hook is fired */

DEFINE SHARED BUFFER Brtb_site FOR rtb.rtb_site.
DEFINE SHARED BUFFER Brtb_deploy FOR rtb.rtb_deploy.
DEFINE BUFFER B_rtb_deploy FOR rtb.rtb_deploy.

DEFINE VARIABLE ch_file AS CHARACTER NO-UNDO.
DEFINE VARIABLE ch_version AS CHARACTER NO-UNDO.
DEFINE VARIABLE in_from_release AS INTEGER NO-UNDO.
DEFINE VARIABLE in_to_release AS INTEGER NO-UNDO.

FIND B_rtb_deploy
WHERE ROWID(B_rtb_deploy) = ROWID(Brtb_deploy)
NO-LOCK NO-ERROR.

FIND PREV B_rtb_deploy
WHERE B_rtb_deploy.wspace-id = brtb_deploy.wspace-id
AND B_rtb_deploy.site-code = brtb_deploy.site-code
NO-LOCK NO-ERROR.

ASSIGN
in_from_release =
IF AVAILABLE B_rtb_deploy THEN
B_rtb_deploy.release-num
ELSE 0
in_to_release = Brtb_deploy.release-num

[/code]

[This message has been edited by progresstalk (edited 30 November 1999).]
 
Top