-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 2.22
Pipeline: Multibranch 2.8
Hello,
I have following requirements:
- 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
- Changelogs are preserved for branches.
- 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)
- duplicates
-
JENKINS-35415 Multiple branch projects per repository with different recognizers
- Open
-
JENKINS-34561 Allow to detect different Jenkinsfile filenames
- Resolved
- mentioned in
-
Wiki Page Loading...