Since Jenkins and Tibco are two most widely used Software products available in market and there is too little information available in public domain about deploying Tibco BW 5.x ear file on Tibco Administrator using Jenkins and Github, hence we will be dealing with in this blog.
Jenkins is one of the most important tools used in CICD pipeline for deployment. It's a free and open source. Tibco is one of the most widely used middleware platforms available in the IT world. In this blog we will be dealing with Tibco BW 5.x ear file to be deployed on Tibco administrator using Jenkins.
1. Jenkins server must be installed. It can be downloaded from Jenkins.io by clicking on the "Download" button.
One can modify the port on which Jenkins server will be running by modifying Jenkins.xml file @ C:\Program Files (x86)\Jenkins
2. Tibco administrator server must be up and running.
3. Acces / Repository should be on Github.
4. Soap UI must be installed. Soap UI can be downloaded from https://www.soapui.org/.
Create a Http Connection. For convenience, I am using localhost with port 8769.
Create a BW Process with Service Pallet.
buildear.exe -s -ear /Tibco_Service.archive -o D:\Aman\Jenkins_Workspace\Tibco_Service.ear -p D:\Aman\Jenkins_Workspace\Tibco_Service
Create another Jenkins Job to extract Global Variables and deploy into Tibco Admin.
Create a new Jenkins job and under the configure section of the new job put the following two commands:
AppManage -export -ear D:\Aman\Jenkins_Workspace\Tibco_Service.ear -out D:\Aman\Jenkins_Workspace\Tibco_Service_Local.xml
AppManage -deploy -ear D:\Aman\Jenkins_Workspace\Tibco_Service.ear -deployconfig D:\Aman\Jenkins_Workspace\Tibco_Service_Local.xml -user admin -pw admin -domain admin
Appmanage is a utility which is available in the bin folder of TRA and can be used to extract deployment configurations from the ear and to deploy ear in the administration domain through the command line.
Execute the Jenkins Job.
Click on "Build Now" under the Jenkins job as shown below.
After the Jenkins job is completed successfully, the Tibco_Service.ear file will be created as a defined location in the command.
Extract the GV XML and deploy the ear file on the administrator:
Deployment logs can be monitored by clicking on the job instance and then Console Output as shown below.
Please make sure the service is in running state and no errors are reported.
Deployed Service can be verified by sending a request again by Soap UI and verifying the result.Overzicht blogs