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

Check out a single change list in perforce plugin

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      Jenkins Ver. 1.605, Perforce Plugin 1.3.35
    • Similar Issues:

      Description

      From time to time, we need to do static files code push. The static files are grouped in a single CL. Instead of the sync all files, we only want to sync the single change list.

      Does current perforce-plugin support this functionality?

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          If you sync to a changeset, you obviously need to sync all others before it if you haven't already. That's just how perforce works, so I'm not sure I understand the request.

          If you want to build anything other than the latest, you can use the 'P4 Label' advanced option to specify the changelist you want to lock the job to. Again, this will still sync everything before that changeset if it hasn't been synced already.

          Show
          rpetti Rob Petti added a comment - If you sync to a changeset, you obviously need to sync all others before it if you haven't already. That's just how perforce works, so I'm not sure I understand the request. If you want to build anything other than the latest, you can use the 'P4 Label' advanced option to specify the changelist you want to lock the job to. Again, this will still sync everything before that changeset if it hasn't been synced already.
          Hide
          rzheng7 Rong Zheng added a comment -

          I'm looking a way to configure the perforce plugin to do `p4 sync -f main/...@337479,@337479` for example.

          If it is not possible to do this within perforce plugin, do you any suggestion to do this?

          Thanks,

          Rong

          Show
          rzheng7 Rong Zheng added a comment - I'm looking a way to configure the perforce plugin to do `p4 sync -f main/...@337479,@337479` for example. If it is not possible to do this within perforce plugin, do you any suggestion to do this? Thanks, Rong
          Hide
          rpetti Rob Petti added a comment -

          That use-case does not make any sense from a continuous integration standpoint. You should instead consider changing your checkin practices so that the latest will sync what you want without having to limit the fileset in the manner you have described.

          Show
          rpetti Rob Petti added a comment - That use-case does not make any sense from a continuous integration standpoint. You should instead consider changing your checkin practices so that the latest will sync what you want without having to limit the fileset in the manner you have described.
          Hide
          rpetti Rob Petti added a comment -

          If for some reason you want to do it anyway, then you can run that command as part of your build scripts. It will never be supported in the plugin because it's extremely bad practice.

          Show
          rpetti Rob Petti added a comment - If for some reason you want to do it anyway, then you can run that command as part of your build scripts. It will never be supported in the plugin because it's extremely bad practice.
          Hide
          rzheng7 Rong Zheng added a comment -

          Thanks Rob.

          Appreciated your help.

          Show
          rzheng7 Rong Zheng added a comment - Thanks Rob. Appreciated your help.

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              rzheng7 Rong Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: