RTCz - How to delete files when the they are promoted from dev to test stage using promotion definition.?
RTCz - How to delete files when the they are promoted from dev to test stage using promotion definition.?
When I promote from DEV to TEST libraries, after promotion i want to delete the files from DEV libraries. How to achieve this. Can any one help me. Thanks in Advance, Viji |
One answer
Here is an approach...
Create a DeleteRexx/clist that deletes a member if it exists in a PDS. Inputs(memberName, pds(e) location, etc)
Create a WrapperRexx/clist that parses the promotionInfo.xml file and identifies each member/program that needs to be DELETED.
Call the DeleteRexx from the WrapperRexx and pass the identified information and any additional information needed.
Modify the generated promotion macro xml file to include a new ant target task that executes WrapperRexx, pass the path to the promotionInfo.xml file and any additional information needed.
Make sure the ant target task is executed/invoked.
On the promotion definition, Use the modified promotion macro xml file instead of generating each time.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.