Tuesday, 7 July 2015

Using release builder in WebSphere portal

ReleaseBuilder :- This command line tool compares different XMLAccess exports taken over time, generating a difference XMLAccess file that can be used to move the changes made to the next environment.
The tool is used in staging to production scenarios.

Use-case :- A company infrastructure has staging and production environments lot of changes will be changed in staging server later they want to  move those changes to production server. in this case we can use ReleaseBuilder to pick the changes which were modified and migrate only those changes.


Step 1 :-
Open a command prompt and change to /opt/WebSphere/wp_profile/PortalServer/bin
Generate the release export by invoking following command -

./xmlaccess.sh -in /opt/WebSphere/Portal/doc/xmlsamples/
ExportRelease.xml -out ChangedRelease.xml -url
http://localhost:10039/wps/config -user wpsadmin -password wpsadmin

Step 2 :- 
Now we generate the difference between the release export we did before performing changes in staging server(ReleaseDiff.xml). To do this, execute the following command :-

./releasebuilder.sh -inOld InitialRelease.xml -inNew ChangedRelease.xml -out ReleaseDiff.xml

Step 3 :-
Now pull the differences files and run xmlaccess.sh to move changes to prod environment

./xmlaccess.sh -in outputfile.xml -user wpsadmin_user_ID -password wpsadmin_pwd -url "http://productionserver.example.com:port/wps/config"

No comments:

Post a Comment

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...