Skip to main content
1-Visitor
Jan 13, 2015 8:58 PM UTC
Solved

how do i create a sandbox based off a member label

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.

    21-Topaz I
    Jan 13, 2015 9:50 PM UTC

    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

    7 replies

    21-Topaz I
    Jan 13, 2015 9:16 PM UTC

    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\

    Translate
    hmagnanao1-VisitorAuthor
    1-Visitor
    Jan 13, 2015 9:27 PM UTC

    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.

    Translate
    hmagnanao1-VisitorAuthor
    1-Visitor
    Jan 13, 2015 9:45 PM UTC

    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.

    Translate