Automate BusinessWorks deployments to TIBCO Cloud via Jenkins

By:
Last updated:
8:49am Jul 25, 2019

Steps to automate BusinessWorks deployments on TIBCO Cloud via Jenkins.

Pre-requisites: 

  • Install Jenkins from https://jenkins.io/ or Jenkins docker image is also available on https://hub.docker.com/_/jenkins

    • In this Wiki scenario, Jenkins is running locally. 

  • Access to bwdesign (available via TIBCO Business Studio Installer) and tibcli executable on the build server. (where Jenkins is running)

  • Access to TIBCO Cloud account

Steps:

  • On Jenkins UI → create a job with FreeStyle project item as shown below.

  • Under the job created in above step, add a build step to execute shell. 
  • Execute the below mentioned commands via shell.

    • Create application archive and manifest.json via the bwdesign utility.

      • ensure BW application has TIBCO Cloud as the Deployment Target. 

      • bwdesign command (on Mac): ./bwdesign -data /Users/hnembhwa/workspace_tibconow_chicago system:export FlightService.application /Users/hnembhwa/Desktop/TCI-Jenkins/FlightsService-Archive

        • -data is to specify the workspace containing BW application.

        • system:export is to create the EAR for FlightService.application in the workspace. For more than one BW app, use comma separated values.  

        • /Users/hnembhwa/Desktop/TCI-Jenkins/FlightsService-Archive is the location for EAR to be generated. 

    • Login to tibcli to the specific org and region via the user specific credentials. 

      • Organization (-o flag) and region (-r flag) details can be retrieved by running tibcli locally or via TIBCO Cloud web portal. (UI)

      • command to execute: refer the snapshot below. 

    • Use tibcli to push the app to TIBCO Cloud. 

      • command to execute: refer the snapshot below.