Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57314

P4 Sync to label after sync to head without deleting non labeled files

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • linux

      I've created a perforce workspace and I've sync it to the head version.

      However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync <workspace>/... @=label . 

      I've tried many combinations of the populate command but all of them have run something like  p4 sync <arguments><workspace>/... @label 

      Is there a way to run the p4sync command on jenkins so that it run a p4 sync ** @= command?*

       

      Thanks!

          [JENKINS-57314] P4 Sync to label after sync to head without deleting non labeled files

          Jose Valverde created issue -
          Karl Wirth made changes -
          Assignee New: Karl Wirth [ p4karl ]
          Jose Valverde made changes -
          Description Original: I've created a perforce workspace and I've sync it to the head version.

          However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync <workspace>/... @=label . 

          I've tried with may continuations of the populate command but all of them have run something like  p4 sync <arguments><workspace>/... @label 

          Is there a way to have a to run the p4sync command to create a *@= command?*

           

          *Thanks!*
          New: I've created a perforce workspace and I've sync it to the head version.

          However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync <workspace>/... @=label . 

          I've tried many combinations of the populate command but all of them have run something like  p4 sync <arguments><workspace>/... @label 

          Is there a way to run the p4sync command on jenkins so that it run a p4 sync *** *@= command?*

           

          *Thanks!*
          Karl Wirth made changes -
          Labels New: P4_B
          Karl Wirth made changes -
          Assignee Original: Karl Wirth [ p4karl ]
          Frederico Pratas made changes -
          Attachment New: p4SyncLabel.groovy [ 46981 ]
          Paul Allen made changes -
          Labels Original: P4_B New: P4_C
          Karl Wirth made changes -
          Assignee New: Karl Wirth [ p4karl ]
          Frederico Pratas made changes -
          Link New: This issue is caused by JENKINS-58745 [ JENKINS-58745 ]

            p4karl Karl Wirth
            citylife4 Jose Valverde
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: