Configuring MettleCI Workbench to use Custom App and Data Directories
In the event that there are constraints which prevent using the usual Mettle Home directory /opt/dm/mci
for storage, it is possible to move the ‘MettleHome’ directory to a different location residing in a data area. For example, this would be useful in a grid environment where /opt/dm/mci
is not on shared storage but the data area is on shared storage.
Steps for moving ‘MettleHome’ to /data/mci
are as follows:
Shutdown the workbench service
Edit
/opt/dm/mci/config.yml
and changemettleHome
to/data/mci
Move files in
/opt/dm/mci/
to/data/mci
but leave the following files in place:-config.yml
dm-mettleci-workbench
mci.log
mettle-ui-x.x-xxx.jar
METTLE_UI.pid
start-mettleci.sh
Ensure that permissions on
/data/mci
match those of/opt/dm/mci
. By default this ismciworkb:dstage
Start the workbench service
Edit
/opt/IBM/InformationServer/Server/PXEngine/bin/osh-dm
and changeexport DM_METTLE_HOME
to/data/mci
Workbench and unit testing will now work fine. You don’t need to bounce DataStage for changes to take effect.
Installing an update to the Unit Test harness will overwrite osh-dm
, so…
When upgrading the Parallel Unit Test Harness you must re-apply Step 6
When upgrading the Workbench you will not need to re-apply Step 6.