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:
Starting the Wizard 1
License Agreement 2
Installation Properties 3
Selecting the Edition (We will use the Standard Edition) 4
Selecting Directories and SSL browsing 5
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.
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.
Repository Creation 8
Repository Type 9
Repository Type 10
Repository Folders and Structure 11
Repository User Access 12
Browsing the created Repository 13
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:
Starting the Wizard 15
License Agreement 16
Selecting the Required Component 17
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…”
SVN Checkout 19
Specify the repository URL (SVN Server Repository) then OK 20
Then we should log in to Siebel tools to enable the Source Control Integration.
Go to view then Options 21
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.
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:
Check Out 24
Check Out 25
Modify the Object and Check In 26
Complete the Check In 27
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
Browsing the Archived files 29
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
LikeLike
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.
LikeLike
Not able to download the file. Link to download the file is not avaliable in dropbox anymore.
Request to Please share.
LikeLiked by 1 person
The link is updated, let me know if everything is going well.
LikeLike
Can we integrate it with bitbucket with the tools , can you please advise the changes ..
LikeLike
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.
LikeLike