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

Perforce unshelve command override local file without revision verification.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • Jenkins ver: 2.32.1
      P4 Plugin: 1.4.13

      We use Jenkins for pre-commit verification.
      To do this - developer shelve changes under CL. Jenkins job Sync to HEAD, unshelve changes, build and run verification.
      If someone submit changes in shelved file and developer don't update and re-shelve this file before verification - submitted changes will be overridden by shelved file without any errors or merge.

      Test case:

      • create file test.txt with any content
      • submit this file to Perforce under revision 1
      • do any changes in this file and shelve it under CL
      • change this file and submit under revision 2
      • run job
        • load file from SCM(configured in "Source Code Management>Perforce Software")
        • unshelve CL in build steps
      • check that second revision test.txt overridden by file from shelved CL.

      Resolve Options doesn't change unshelve build step behavior.

          [JENKINS-41622] Perforce unshelve command override local file without revision verification.

          Alexander Kalach created issue -
          Rob Petti made changes -
          Component/s New: p4-plugin [ 19224 ]
          Component/s Original: perforce-plugin [ 15506 ]
          Rob Petti made changes -
          Assignee Original: Rob Petti [ rpetti ]
          Paul Allen made changes -
          Assignee New: Paul Allen [ p4paul ]
          Paul Allen made changes -
          Labels New: P4_B
          Paul Allen made changes -
          Rank New: Ranked higher

            p4paul Paul Allen
            alex_kalach Alexander Kalach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: