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

Allow cloning job trees when creating job via gitlab web hook

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Major Major
    • gitlab-hook-plugin
    • None

      Currently, the hook copies the job as is and just alters git urls.

      I wish I could modify the job in accordance with the branch (e.g. via Job DSL plugin or JobCopy plugin).

      For instance: I use MultiJob plugin to create a build pipeline. MultiJob requires names of the child jobs be in literal. It does not allow to specify "build-${branch}" in the definition of phase job.
      So I would like to be able to clone those child jobs with new names and wire the whole thing.

      A workaround I see is to use parameterized with "branch" jobs for each build phase, however that messes up the statistics. For instance, "compile the project job" builds different branches at different times, so it is bad for any kind of statistics.

            javiplx Javier Palacios
            vladimirsitnikov Vladimir Sitnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: