User:Kaduluz1/sandbox

Branching Strategy

 * GIT (Revision control system) is used to create/maintain new branches where the developers can push their source code.
 * User Story branch: User story related code is checked in git in US branch.
 * Feature branch: More than one related US can be pushed into one feature branch.
 * Main branch: US/feature branch is merged to main branch (e.g. CBiO Master branch) only after formal Gerrit code review.
 * Feature branch: More than one related US can be pushed into one feature branch.
 * Main branch: US/feature branch is merged to main branch (e.g. CBiO Master branch) only after formal Gerrit code review.
 * Main branch: US/feature branch is merged to main branch (e.g. CBiO Master branch) only after formal Gerrit code review.

Continuous Integration:

- Jenkins is an open source tool to perform continuous integration. - Perform a software build with Gradle (build automation) - Archive the build result

- Each team configures its own jenkins jobs for building batch/java/database/online parts.

- For example the jenkins job page for SJ-team1 can be accessed using the following URL http://jenkins.lhs-systems.com:8080/jenkins/view/sj01/ - How to start the build process using jenkins: - Goto the team page for jenkins. - Click on the link for the required build e.g batch, java, database etc - Click on 'Build with Parameters' link within a specific build project and insert the correct branch name (GIT branch name of the corresponding US e.g. feature/pc1892_sj01_e1_u1) in the field 'GERRIT_BRANCH' and start the build process by clicking the 'Build' button. - Jenkins will execute a pre-configured gradle script in order to create a new build for the specified branch. - Please check the status of the jenkins job at the end of build process to see if it was successful or not. In case of a failure please inform the concerned developer or contact the jenkins admin. - After successful completion of the buil process, goto 'Workspace' to download the newly created build tar file (e.g. cbio-3.0.1.x-st03-java.tar). Build Installation

The following directory structure can be used to install the build /home//WORK//bin_nb/   --- to copy the jenkins build files (java/batch) /home//WORK//   		 --- BSCS WORK directory, here you can execute the genwrkdir script to create the required directory structure

- Build process results can be downloaded after successful completion to bin_nb folder as described above Wget [build jenkins URL] OR Save the tar file to you unix directory (if the unix file system is mapped to your windows environment) - Unzip/Untar the build locally to get the binaries/resource files etc.		tar -xvf  - Adapt the attached. setenv script according to your used directories, database and ports and run it. - Generate the required BSCS directory structure using genwrkdir (in the recommended folder as described above or anywhere else you prefer)

- Start the batch module Data (data &) to see if the installation process was successful or not.