New or updated Fabric project implementations must be deployed to the server side. A deployment can be performed from either the Fabric Studio or from the Fabric server (an act also known as an Offline Deploy).
An Offline Deploy is implemented by running the Deploy command on the Fabric server using artifacts that can be created either by the Fabric Studio or by the script on the server side.
When a Fabric project is developed by a group of programmers, it is important that the environment is always up-to-date. This can be challenging. Fabric provides a solution that enables combining the code changes that have been implemented and committed by several programmers and deploying them to a specific environment. To do so, the Development team should prepare an automated Jenkins process that takes the project's latest sources from the Git or SVN repository and copies them to the server. The process then runs the script that creates the artifacts based on this code and deploys them on a server. This process can run on the Fabric server without any dependency on the Fabric Studio.
Click here for more information about Best Practices for working with GIT and SVN.
There are two ways to perform an Offline Deployment:
Build and deploy in two steps. First, build the artifacts either from the Fabric Studio or from the server using the buildArtifacts.sh deployment script. Then, do the deployment by running the Deploy command on the server.
Build and deploy in one step. Build and deploy from the server using the buildAndDeployArtifacts.sh deployment script. It is also possible to deploy without the build, whereby the script only runs a Deploy command, without creating and deleting artifacts.
To build the artifacts from the Fabric Studio:
a. Right-click the object (for example, Web Services) and click Build Deploy Artifacts. A notification is displayed after the artifacts are successfully built.
b. Right-click the same object and select Open Folder. The Windows Explorer opens in the following location: [Your PC Folder]\K2View Fabric Studio\Projects\[Project Name]\Implementation\LogicalUnits\[LU Name].
c. Copy the ludb.JAR and ludbXMLs.ZIP files to the server.
To build the artifacts from the Fabric server, run the buildArtifacts.sh deployment script.
To do the deployment, run the Deploy command using the following syntax:
DEPLOY <LUT> WITH JAR <'jar_path'> ZIP_FILE <'zip path'> [WS_METHODS <'string'>] NOSYNC <Boolean>.
Note that if the LUT parameter is populated by a k2_ws (Web Service LU Type), you can populate the WS_METHODS using the list of Web Services to be deployed. If this parameter is not populated or is empty, all the WS are deployed into the Fabric server.
Example:
DEPLOY k2_ws WITH JAR '/home/k2view/AutoTests/Data/StudioProject/QA/Implementation/LogicalUnits/k2_ws/ludb.jar' ZIP_FILE '/home/k2view/AutoTests/Data/StudioProject/QA/Implementation/LogicalUnits/k2_ws/ludbXMLs.zip' WS_METHODS 'dbQueryOnAnyDB' NOSYNC true;
To build the artifacts and the deployment together in one step from the server, run the buildAndDeployArtifacts.sh deployment script.
The following table describes the syntax and the mandatory/optional parameters for calling the deployment scripts. The scripts are located under $K2_HOME/fabric/scripts in the Fabric server.
The following table describes the syntax and the mandatory/optional parameters when invoking the deploy command on the Fabric server.
DEPLOY |
Usage: DEPLOY <LUT> WITH JAR <'jar_path'> ZIP_FILE <'zip path'> [WS_METHODS <'string'>] NOSYNC <Boolean>. Options:
|
New or updated Fabric project implementations must be deployed to the server side. A deployment can be performed from either the Fabric Studio or from the Fabric server (an act also known as an Offline Deploy).
An Offline Deploy is implemented by running the Deploy command on the Fabric server using artifacts that can be created either by the Fabric Studio or by the script on the server side.
When a Fabric project is developed by a group of programmers, it is important that the environment is always up-to-date. This can be challenging. Fabric provides a solution that enables combining the code changes that have been implemented and committed by several programmers and deploying them to a specific environment. To do so, the Development team should prepare an automated Jenkins process that takes the project's latest sources from the Git or SVN repository and copies them to the server. The process then runs the script that creates the artifacts based on this code and deploys them on a server. This process can run on the Fabric server without any dependency on the Fabric Studio.
Click here for more information about Best Practices for working with GIT and SVN.
There are two ways to perform an Offline Deployment:
Build and deploy in two steps. First, build the artifacts either from the Fabric Studio or from the server using the buildArtifacts.sh deployment script. Then, do the deployment by running the Deploy command on the server.
Build and deploy in one step. Build and deploy from the server using the buildAndDeployArtifacts.sh deployment script. It is also possible to deploy without the build, whereby the script only runs a Deploy command, without creating and deleting artifacts.
To build the artifacts from the Fabric Studio:
a. Right-click the object (for example, Web Services) and click Build Deploy Artifacts. A notification is displayed after the artifacts are successfully built.
b. Right-click the same object and select Open Folder. The Windows Explorer opens in the following location: [Your PC Folder]\K2View Fabric Studio\Projects\[Project Name]\Implementation\LogicalUnits\[LU Name].
c. Copy the ludb.JAR and ludbXMLs.ZIP files to the server.
To build the artifacts from the Fabric server, run the buildArtifacts.sh deployment script.
To do the deployment, run the Deploy command using the following syntax:
DEPLOY <LUT> WITH JAR <'jar_path'> ZIP_FILE <'zip path'> [WS_METHODS <'string'>] NOSYNC <Boolean>.
Note that if the LUT parameter is populated by a k2_ws (Web Service LU Type), you can populate the WS_METHODS using the list of Web Services to be deployed. If this parameter is not populated or is empty, all the WS are deployed into the Fabric server.
Example:
DEPLOY k2_ws WITH JAR '/home/k2view/AutoTests/Data/StudioProject/QA/Implementation/LogicalUnits/k2_ws/ludb.jar' ZIP_FILE '/home/k2view/AutoTests/Data/StudioProject/QA/Implementation/LogicalUnits/k2_ws/ludbXMLs.zip' WS_METHODS 'dbQueryOnAnyDB' NOSYNC true;
To build the artifacts and the deployment together in one step from the server, run the buildAndDeployArtifacts.sh deployment script.
The following table describes the syntax and the mandatory/optional parameters for calling the deployment scripts. The scripts are located under $K2_HOME/fabric/scripts in the Fabric server.
The following table describes the syntax and the mandatory/optional parameters when invoking the deploy command on the Fabric server.
DEPLOY |
Usage: DEPLOY <LUT> WITH JAR <'jar_path'> ZIP_FILE <'zip path'> [WS_METHODS <'string'>] NOSYNC <Boolean>. Options:
|