Skip to main content
1-Visitor
January 13, 2015
Solved

how do i create a sandbox based off a member label

  • January 13, 2015
  • 1 reply
  • 3235 views

I have a label applied on the project. I want to create a sandbox based on that label. So if a label is not on the tip, I want the sandbox to be created with the version that the label is on.

    Best answer by JoeBartlett

    Ah, that is a bit trickier. Creating based on build project (checkpoint) label is the easiest way to ensure you have members at the given revisions of that time.

    The other option you could use is to recursively perform a check-out (with no lock) against all members in the sandbox which match certain criteria (the label). For example:

    si co -R --nolock --sandbox=C:\Sandbox\Path\project.pj --cwd=C:\Sandbox\Path\ -r MyLabel

    1 reply

    21-Topaz I
    January 13, 2015

    Hello Hector, the --projectRevision flag for the si createsandbox command will accept a label string.

    si createsandbox -R --project=/Project1/project.pj --projectRevision=MyLabel C:\SomeFolder\

    hmagnanao1-VisitorAuthor
    1-Visitor
    January 13, 2015

    Hi Joseph,

    That option only works on build labels. I get an error saying

    *** The project /SCM/AdminScripts/project.pj could not be located on the server localhost:443: MKS125193: The specified

    build project revision Prod is invalid or missing.

    I want to create a sandbox off a member label. I've applied a label on all the members and I want to create a sandbox off it.

    hmagnanao1-VisitorAuthor
    1-Visitor
    January 13, 2015

    I was correct. That --projectRevision option only works on checkpoint labels. I want to be able to create a sandbox based off labels on the members.