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

Allow per-job Parameters for Multi-Branch

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Jenkins 2.22
      Pipeline: Multibranch 2.8

      Hello,

      I have following requirements:

      1. I want several Jobs for a Project with multiple Branches (or even Repositories)
      • Integration: Build everything (with flags for faster compilation), don`t archive anything
      • Staging: Allow a set of Parameters to control the build (what & how), Archive the output files. Usefull for building feature Branches for testing and verifying bug fixes.
      • Release: Build the release artifacts with release settings. Archive release artifacts and sources
      1. Changelogs are preserved for branches.
      2. Incremential Builds should be possible

      To solve this, I would need to create 3 multibranch jobs for the same sources - and a way to differenciate between them
      I could work with job names (eg. adding .staging to the name) and parse the name in the scripts, but I `d prefer a better solution.

      Some possibilities are:

      • Allow defining Env Parameters for Multi-Branch jobs.
      • Allow defining the script (and its repository) similar to the pipeline jobs.

      1) would allow me to pick the right buildscript depending on a variable, and the parameters for the staging build could be seeded and optionally replaced by the pipeline scripts per-branch-job.
      2) would allow to directly specify the build-script (no extra script for parsing env variables needed)

            jglick Jesse Glick
            nolange79 Norbert Lange
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: