excercises: cm with clearcase sirkka-liisa juoperi 23.11.99 exercises: configuration management with...

19
Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Upload: brittany-ryan

Post on 19-Jan-2018

215 views

Category:

Documents


0 download

DESCRIPTION

Excercises: CM with ClearCase Sirkka-Liisa Juoperi ClearCase is… Version management tool for all types of files and directories - records all actions - reports history - accurate reproduction of every release Available both in Unix and Windows NT environments Two user interfaces - command line: ‘cleartool’ - graphical: ‘xclearcase’

TRANSCRIPT

Page 1: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Exercises: Configuration Management with ClearCase

Page 2: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

What is ClearCase?

Page 3: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

ClearCase is…

Version management tool for all types of files and directories

- records all actions- reports history- accurate reproduction of every release

Available both in Unix and Windows NT environments

Two user interfaces- command line: ‘cleartool’- graphical: ‘xclearcase’

Page 4: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Basic ConceptsVOB

- Versioned Object Base - the whole database consists of several VOBs

CONFIG SPEC- configuration specification (file) that defines what version of each VOB element you see in your view

VIEW- a working area from where you have access to the VOB- each individual developer or closely coordinated group has an own view

Page 5: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Basic Concepts (cont.)

ELEMENT

- file or directory that is stored in a VOB

META-DATAtypes:- labels- attributes- hyperlinks- triggers

- can be connected to a specific version of an element, or to a branch, or to the entire element

Page 6: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Basic Concepts (cont.)

element * CHECKEDOUTelement * /main/LATEST

vob1 vob2

element * CHECKEDOUTelement * /main/LATEST

element * CHECKEDOUTelement * ../phase2/LATESTelement * REL1 -mkbranch phase2element * /main/LATEST

element * CHECKEDOUTelement * /main/LATEST

CONFIG SPECs

VIEWs

vob3

Kalle’s view Anna’s view Test group’s view Peter’s view

elements

VOBs

Page 7: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Default Config Spec:

element * CHECKEDOUTelement * /main/LATEST

- a rule per line

- rules are processed from top to bottom; if no matching version of an element was not found for the first rule, the system tries to find a version that matches the second rule etc.

element * CHECKEDOUTelement * /main/LATEST

Page 8: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Files in a Normal View Window

x.cc y.cc z.cc w.cc

CHECKEDOUT

Page 9: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Files in Version Tree Browser Window

x.cc z.ccy.cc w.cc

/main /main /main /main

CHECKEDOUT

0

1

2

3

0

1

2

3

5

4

0

1

2

3

4

0

1

2

3

4

Page 10: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Versions that match with Default Config Spec

0

1

2

3

4

x.cc

5

z.ccy.cc w.cc

/main /main /main /main

4

0

1

2

3

0

1

2

3

4

0

1

2

3

Page 11: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Labelling

x.cc z.ccy.cc w.cc

/main /main /main /main

REL1 REL1

REL1

REL1

4

0

1

2

3

0

1

2

3

4

0

1

2

3

5

4

0

1

2

3

Page 12: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Example of Config Spec for Label ‘REL1’:

element * REL1element * /main/LATEST

element * CHECKEDOUTelement * /main/LATEST

Page 13: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Versions that match using the Config Spec for ‘REL1’

/main /main /main /main

REL1 REL1

REL1

REL1

x.cc z.ccy.cc w.cc

4

0

1

2

3

0

1

2

3

5

4

0

1

2

3

4

0

1

2

3

Page 14: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Branching

0rel1_corr

1

x.cc z.ccy.cc w.cc

/main /main /main /main

REL1 REL1

REL1

REL1

4

0

1

2

3

0

1

2

3

4

0

1

2

3

5

4

0

1

2

3

0

1

rel1_corr

Page 15: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Example of ‘Branch Config Spec’

element * CHECKEDOUTelement * /main/rel1_corr/LATESTelement * REL1 -mkbranch rel1_correlement * /main/LATEST

element * CHECKEDOUTelement * /main/LATEST

Page 16: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Versions that match using the ‘Branch Config Spec’

x.cc z.ccy.cc w.cc

0rel1_corr

1

x.cc z.ccy.cc w.cc

/main /main /main /main

REL1 REL1

REL1

REL1

4

0

1

2

3

0

1

2

3

4

0

1

2

3

5

4

0

1

2

3

0

1

rel1_corr

Page 17: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Basic Actions for an Element

Checkout- a new editable version is created- only one person can edit the file at the same time

Checkin- the version that was created by checkout command is saved to the VOB and is then visible to the other views - the element changes to write-protected mode

Uncheckout - undo operation for checkout

Page 18: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

Other Utilities

Clearmake- ClearCase variant of the Unix ‘make’ utility

MultiSite- same VOB is used concurrently at several different locations

Page 19: Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99 Exercises: Configuration Management with ClearCase

Excercises: CM with ClearCase Sirkka-Liisa Juoperi 23.11.99

That’s ClearCase!

Let’s try how it works in practise …