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

Applying patch always fail when using perforce

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using perforce, the patch always fail because post-review includes the name of the depot in the file paths, ie: //depot/filetopatch.py
      But the Perforce plugin will fetch the file directory like this: /workspace/filetopatch.py

      So the patch fail because the .diff wants to patch /workspace/depot/filetopatch.py

        Attachments

          Activity

          Hide
          syl20bnr Sylvain Benner added a comment -

          This error can be prevented by using explicit mapping in the workspace view of the perforce configuration block of the job (ie add the depot name explicitly in there).

          Show
          syl20bnr Sylvain Benner added a comment - This error can be prevented by using explicit mapping in the workspace view of the perforce configuration block of the job (ie add the depot name explicitly in there).
          Hide
          david_resnick David Resnick added a comment -

          @sylvainbenner Using your workaround I was able to get a single trivial Perforce patch to work. But non-trivial ones fail, though I don't see a reason for them to. Are you able to use the plugin against Perforce?

          Show
          david_resnick David Resnick added a comment - @sylvainbenner Using your workaround I was able to get a single trivial Perforce patch to work. But non-trivial ones fail, though I don't see a reason for them to. Are you able to use the plugin against Perforce?

            People

            Assignee:
            syl20bnr Sylvain Benner
            Reporter:
            syl20bnr Sylvain Benner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: