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

Parametrize incremental build in freestyle jobs

XMLWordPrintable

      Hi,

      in my company we use old perforce plugin in freestyle jobs, they mostly run incremental builds (one perforce changelist at a time), but sometimes we need to wipe out workspace and build all pending changelist at once.

      Old (legacy) perforce plugin has "P4ONECHANGELIST" parameter support, which, when enabled, builds only the oldest, not yet build change returned by polling routine.

      This is supported by p4 plugin using "incremental" clause, but is available only in declarative pipelines.

      I'd like to have similar, parametrized feature in p4 plugin, but for freestyle jobs. I know there is "Polling per change" filter, but it's not parametrized in any way (or I can't find how to do it).

      I have attached a short diff, that acts as if "Polling per change" field was active, if there is P4_INCREMENTAL environment variable set to "true" or not defined at all, and inactive if P4_INCREMENTAL environment variable is "false" .

      I have attached diff file. Is it possible to include this change in p4 plugin release?

      Kind regards,

      Daniel Jeznach
       

        1. image-2021-07-19-13-26-13-781.png
          23 kB
          Karl Wirth
        2. p4-onechangelist.diff
          4 kB
          Daniel Jeznach

            Unassigned Unassigned
            daniel_jeznach_img Daniel Jeznach
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: