Deploying schema and data changes with WCBD
You can use WCBD to deploy schema and data changes in sql, xml, dataload, acug, acp, and acpnls files.
About this task
- SQL files
- XML files
- Dataload files
- ACUG files
- ACP files
- ACPNLS files
Procedure
-
Create a Data Load project that includes the data files you want to deploy. You have two
options:
- Build a data package with the HCL Commerce Build Tool. Then, extract it to the wcbd/source/ directory. For more information about using WCB to build data package, see Packaging customized code for deployment.
- Copy your Data Load project to WCInstallDir/wcbd/source directly. For more information about organizing a Data Load project, see HCL Commerce Build tool repository structure.
-
Set ANT_HOME and WAS_HOME environment variables. You need
to set these environment variables only if you are using HCL Commerce Developer.
- Copy WCB_installdir/wcbd-setenv.bat.template to WCB_installdir/setenv.bat.
- Open WCB_installdir/setenv.bat with a text editor and
set the following values:
- ANT_HOME to the Ant_installdir
- WAS_HOME to the WAS_installdir
- WC_HOME to the WC_installdir
Note: The setenv script in the Utility server Docker container is already set to match the runtime environment. Change the setenv script only if you need to apply customizations.
- Ensure that the correct JDBC driver path is added. Its value must be CLASSPATH in setenv.bat (for the developer environment), or setenv (for the server environment).
-
Set security-sensitive build configurations.
-
Copy
WCB_installdir/wcbd-deploy.private.properties.template to
WCB_installdir/deploy-targetenv.private.properties.
The variable targetenv contains the values for use with
target.env when you deploy the data with wcbd-ant.bat
target.env. This parameter specifies the target environment that you want to deploy the
data to. For example,
qa, dev, prod
- Configure the following properties in WCB_installdir/deploy-targetenv.private.properties: db.user.name and db.user.password
-
Copy
WCB_installdir/wcbd-deploy.private.properties.template to
WCB_installdir/deploy-targetenv.private.properties.
The variable targetenv contains the values for use with
target.env when you deploy the data with wcbd-ant.bat
target.env. This parameter specifies the target environment that you want to deploy the
data to. For example,
-
Set the deployment configurations for use in the deploying process.
-
Run wcbd-ant to start the deploying process.
- wcbd-ant.bat -buildfile wcbd-deploy.xml -Dtarget.env=target-env -Dbuild.label=build.label
- ./wcbd-ant -buildfile wcbd-deploy.xml -Dtarget.env=target-env -Dbuild.label=build.label