Status: Open (View Workflow)
Environment:* OS: Official Container Docker Image (https://hub.docker.com/r/jenkins/jenkins)
* Jenkins: 2.249.1
* Jenkins plugin basic-branch-build-strategies: 1.3.2
* Jenkins plugin pipeline-utility-steps: 2.6.1
* Jenkins plugin job-dsl: 1.77
* Jenkins plugin github: 1.31.0
My pipelines are managed with multi branch. I source code from GitHub with the GitHub plugin. Every component use Git tags to compute by themselves their version number. By default, Jenkins doesn't fetch tags during clones. So I need to activate "Advanced clone behaviors" (the option "Fetch tags" is enabled by default) for each of my projects.
My issue is that I didn't found any solution to enable "Advanced clone behaviors" behavior in "multibranchPipelineJob" with CasC plugin. I have searched across, Stack Overflow, web and documentation without ending.
Here is my example CasC section relative to `jobs` CasC section:
Every time I deploy a new Jenkins instance (this can append multiple times per day with Kubernetes), I have to manually update the option in the GUI for every project I have. This is non-practical and time-consuming.