Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Development and Production VSS database

Status
Not open for further replies.

sg041

Programmer
Dec 31, 2003
2
US
I need to set up the environment where there is two identical VSS databases (same projects) but one only holds production code and the second one is the development code that gets checked in nightly. Once code is promoted into production it needs to be promoted from development VSS to production. Production should hold only production code so if you roll back in production you would roll back to previous version of production code. I was wondering if anybody have done the similar thing and what is the best way for updating the production VSS projects with the projects from development VSS
Thanx
 
I have done this very thing for the company I work for. I took some ideas from an excellent article I read on the subject, and modified the architecture to work for our environment. See:
This article describes using a web server and ASP pages to manipulate VSS. I created a full-fledged VB tool that our company uses to manage all of the check in/out, demotion, promotion, seeding, etc. involved with our development enviroment.

We use two physical VSS databases. On the development database, we set up promotion levels for managing a "Development/QA/Pre-Production" environment so that code is isolated in each development stage during the development process.

Code is "demoted" from production to development by checking it out to a username that is the version that we are working on. (in the example below, the username would be "MYPRODUCT V5.3") The version 0_Development VSS project is then seeded with the projects/files that have been checked out of production.

As development proceeds, code is "promoted" from 0_Development to to 1_QA for testing. If testing is successful, code is then promoted to 2_Pre-Production. If QA determines that more work is needed, code is "demoted" back to 0_Development for more work. (I used the article's convention of prefacing the promotion level VSS project names with 0,1,2 so the display in VSS is consistent with the level.)

When we are ready to promote back to production, we do a GET from 2_Pre-Production. We then go to the production database and check in all projects that have been promoted.

In this way we maintain a complete product version history in our production database that stays nice and clean because it doesn't have tons of individual developer history.

--------------
Production VSS
--------------
MYPRODUCT
COMPONENT1 CHECKED OUT TO MYPRODUCT V5.3
COMPONENT2 CHECKED OUT TO MYPRODUCT V5.3
COMPONENT3 CHECKED OUT TO MYPRODUCT V5.3
etc.


---------------
Development VSS
---------------
MYPRODUCT V5.3

0_Development
COMPONENT2

1_QA
COMPONENT1

2_Pre-Production
COMPONENT3

Let me know if you would be interested in the source for the tool...
 
Amicidavinci.
I would be interested in the source for your VB app...
 
Amicidavinci thank you for your respond. What you are describing is very close to what I need. I would be interested in the souce for your application
 
Please send your reply email address to amicidavinci@hotmail.com and I will send the source.
 
sg041,amicidavinci, could you please help me - I need to set up the same thing (prod and dev db's) - I have no idea how to start...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top