Integrating Siebel with SVN (Subversion)

Introduction


Integrating Siebel with an Source Control technologies has been there from Siebel 7.X, the only official integration from Siebel was with VSS from Microsoft, unfortunately Microsoft is now not supporting VSS instead they issued a new product called Team Foundation, but in this document we will use Subversion with apache as it is an Open Source technology and don’t need any license.

Let’s Get Started


Siebel integration with any Source Control program is made simple, it is done through a single text batch file called srcctrl under the bin directory in Siebel Tools, this batch file runs set of commands which will do the Check Out/ Check In process right after the Siebel Tools Object Check In, in order to establish Subversion Integration with your Siebel environments there are two parts of the story, part one is to install the Subversion and prepare your environment, part two is to integrate Siebel with the Subversion server. Let’s start with part one.

Preparing Subversion Server/Client and the Environment


Subversion itself is a technology and have raw material installation binaries and commands, but to make it simpler there is a lot of open source clients made based on this technology to make an easy GUI to use, in this document we will be using the Visual SVN Server to create our Source Control Server to hold every version of our objects.

First we need to download Visual SVN Server from this URL and start the installation process on the desired machine (Server):

https://www.visualsvn.com/server/

Take into consideration that Visual SVN Installs an Apache server to browse your repositories through a webserver, so it is very important to install the software on a non-web machine to facilitate the apache server.

After downloading the SVN Setup file lets proceed with the Installation process:

s1

Starting the Wizard 1

s2

License Agreement 2

s3

Installation Properties 3

s4

Selecting the Edition (We will use the Standard Edition) 4

s5

Selecting Directories and SSL browsing 5

s6

Starting the Installation 6

After the installation of the Visual SVN Server is finished verify your installation by browsing the repositories of your fresh environment, but first create a new user on the SVN GUI to authenticate with the server.

s7

Creating the first user 7

After creating the user we should create a new repository which Siebel will interact with to archive our objects in the future.

s8

Repository Creation 8

s9

Repository Type 9

s10

Repository Type 10

s11

Repository Folders and Structure 11

s12

Repository User Access 12

s13

Browsing the created Repository 13

s14

Browsing the Repository by web with the created user 14

Preparing Client/Siebel Developer Machine


To prepare the developer machine we need to install an SVN Client to browse the server repository and have the command binaries which will interact with the SVN Server.

In this document we will use Tortoise SVN that have an easy to use GUI with a CMD binaries.

Use the URL below to download Tortoise SVN and start the installation:

Note: Tortoise SVN can be used as a SVN server also but we prefer to download it on the developer client to facilitate its commands through the integration with Siebel and it’s easy to use GUI for browsing repositories.

Let’s proceed with the installation:

s15

Starting the Wizard 15

s16

License Agreement 16

s17

Selecting the Required Component 17

s18

Starting the installation 18

After installing the Tortoise SVN on the developer machine we should proceed with part two wich is integrating Siebel with the SVN Server.

In order to prepare the Siebel developer machine the developer should be already installed Siebel tools and prepared a local database, I will continue this document based on this requirements.

First we should create a working directory on the developer machine which will be synced with the server repository please follow the below steps to do so:

Create an empty new folder on the developer client with another two subfolders “Log” and “My Repository” inside “My Repository” folder create a subfolder called Siebel for example

Right click inside “Siebel” empty folder and click the “SVN Checkout…”

s19

SVN Checkout 19

s20

Specify the repository URL (SVN Server Repository) then OK 20

Then we should log in to Siebel tools to enable the Source Control Integration.

s21

Go to view then Options 21

s22

Check “Enable source control Integration”22

After enabling the source control integration we should browse integration batch file taking it as a backup and replace it with the integrated batch file with SVN you can find it below.

Click Here to Download !

Download this file and replace it with the original file 23

After replacing the srcctrl.bat file open the file with a notepad to modify some defined parameters.

Modify the following parameters values according to your created environment:

Line11: set PATH=C:\Program Files\TortoiseSVN\bin;%PATH%

Line 12: set SVN_URL=https://172.16.2.107/svn/

Line 13: set SVN_REPOS=SiebelRepository

Line 14: set SRC_USR=admin

Line 15: set SRC_PSWD=Amman123

Line 16: set LOGFILE= E:\WorkingDirectory\Log\svn_integration.log

Line 17: set WORKING_DIR= E:\WorkingDirectory\MyRepository

Once the parameters are modified you are good to go with the check out and check in process in Siebel tools, try to check out an object, modify it, check in the object again a box for filling your comments will pop up fill your comments then click ok. A CMD window will appear and will close by itself, actually this CMD window is the srcctrl.bat file running the commands inside it to integrate with the SVN Server and archive the object.

Let’s get it on Action!      


Object Checkout:

s24

Check Out 24

s25

Check Out 25

s26

Modify the Object and Check In 26

s27

Complete the Check In 27

s28

Writing Comments 28

After the check in is completed browse the repository through the SVN Server you will find the object archived to a SIF file with revision 1

s29

Browsing the Archived files 29

6 comments

  1. Nimmi Kumari · April 6, 2017

    Hi ,
    Your blog is really good ,i followed it completely and was able to integrate svn with siebel .But ,I have one query ,while checking out and checking in an object ,the log file getting generated is only having the checking in objects details why so ?? The other query is while checking out the object the sif file of the checked out object is not created in local repository ,it is a normal behaviour of svn that only after the checkin is done the object sif file will be reflected or it is reflected during check out also .

    Regards ,
    Nimmi

    Like

    • awartanirafat · April 7, 2017

      Hello Dear,

      I’m happy to read this, thanks.
      it is normal that the sif file will only be generated on the check-in process because that’s what written in the logic of checkin/checkout integration file, however you can manually read the SVN API’s and change the code based on your preferences. Thanks.

      Like

  2. Raman · May 19, 2017

    Not able to download the file. Link to download the file is not avaliable in dropbox anymore.
    Request to Please share.

    Liked by 1 person

  3. awartanirafat · May 21, 2017

    The link is updated, let me know if everything is going well.

    Like

  4. vijaykirann · July 8, 2017

    Can we integrate it with bitbucket with the tools , can you please advise the changes ..

    Like

    • awartanirafat · July 8, 2017

      Hello and thanks for your comment. To be honest I am not sure about BitBucket; due to the fact that I have never worked with it. However, if it has client and server side commands and API’s it should absolutely work! I would suggest you further R&D on these commands and how it simply works without Siebel. Afterward, you should apply what you have understood and put it in the srcctrl.bat file within Siebel Tools.

      Like

Leave a comment