Questions tagged [multibranch-pipeline]

Multibranch Pipeline is a Jenkins job configuration type provided by the Pipeline: Multibranch Plugin that detects and builds SCM branches.

Multibranch Pipeline is a Jenkins job configuration type provided by the Pipeline: Multibranch Plugin that detects and builds SCM branches.

310 questions
0
votes
0 answers

How do you turn off whitelisting in Jenkins?

In this update https://www.jenkins.io/blog/2018/03/15/jep-200-lts/ there was some Security hardening added that has caused problems for my Multibranch pipelines. I would like to turn off the restrictive whitelists that this update added. I have no…
0
votes
1 answer

Build a Jenkins job that triggers all of our other jobs with the parameters of the successful builds

I have a small change that I need to push, that affect all of our 60 jobs (Jenkinsfiles). I want to test first each job (at integration) with that change. In order to do that efficiently I was thinking to build a new job that triggers all those 60…
0
votes
1 answer

gradle build with subprojects, git feature branches and jenkins multibranch pipeline: how to only run tests on affected subprojects

Say we have a Java project with subprojects like persistence businessA businessB web where everything depends on persistence and web depends on both business subprojects. We use git and feature branches. We use jenkins with pipelines and jenkins'…
erik
  • 253
  • 2
  • 11
0
votes
0 answers

Jenkins Multibranch pipeline - webhook trigger and parse webhook payload in the build

I have a multibranch pipeline which is currently using the multibranch scan webhook trigger to run a build everytime a pull request is created. I'm trying to get jenkins to trigger the build as well as parse the payload into the build as variables…
0
votes
1 answer

Jenkins scripted pipeline: must specify $class with an implementation of class jenkins.scm.api.SCMSource

I have a jenkins multibranch-pipeline. Apparently it checked out the main repo successfully (files are visible in the workspace). But then I called this method. Goal was to check out (in a dedicated subfolder) the following repository and the same…
ThomasMX
  • 1,643
  • 2
  • 19
  • 35
0
votes
1 answer

How to add parameters in jenkins multibranche pipeline?

Jenkins multibranch can't add parameters, this options can't click: This page is project's develop branch.
deqang yu
  • 1
  • 1
0
votes
0 answers

Jenkins multibranch pipeline triggering build only for new commits

I would like to use the multibranch pipeline functionality offered by Jenkins with some projects that have been around for long time, with a lot of branches. I am using it in conjunction with the Basic Branch Build Strategies Plugin and the…
0
votes
0 answers

Disable a Multibranch Pipeline in Jenkins

A MBP is created when I run a Seed-job that fetches a groovy file from the filesystem. Now, when I rename a project on gitlab, the groovy script gets updated with the required changes and creates a new MBP on Jenkins when I re-run the seed-job. Is…
Hema B
  • 1
  • 1
0
votes
1 answer

What is the best way to configure one Jenkinsfile for many repos?

Short explanation: There are many repos in our Git Each repo has it's own Jenkinsfile who has it's own separate Job at Jenkins All Jenkins files are doing 99% the same thing! What we want to achieve at the moment: Build one Jenkinsfile for all…
0
votes
1 answer

Jenkins Gitlab multi-branch concurrent builds

Anyone has idea how to limit number of concurrent builds on Jenkins for multi-branch pipeline? I was searching out but almost every approach was about putting properties([disableConcurrentBuilds()]) which doesn't work in my case. We use resource…
Nick
  • 1
0
votes
0 answers

Pom parent property is not being passed to child pom using Jenkins multibranch pipeline

I'm running into a strange issue. I have a multi-module maven project and in the pom parent I have a property called whose default value is latest, then, in a submodule I'm using this property to be part of a docker image tag. Tagging…
0
votes
2 answers

Jenkins multibranch pipeline: branch name filtering not working?

I've got a Jenkins multibranch pipeline and I'm trying to filter branches and tags, but none of my filters seem to work. I've added "Discover branches" and "Discover tags" and I can see in the logs that branches and tags are discovered, and builds…
John Q Citizen
  • 321
  • 1
  • 6
  • 15
0
votes
1 answer

Jenkins Multibranch-Pipeline JobDSL can't specify github url

I'm creating a Multibranch Pipeline job with JobDSL , and I want to specify my github url , but it's not working. The job which I created it display "https://github.com/jackson/multibranch-Pipeline.git" , not…
0
votes
1 answer

Jenkins multibranch pipeline how to automatically initialize and update submodules of a repo

Basically need the equivalent of git clone . git submodule update --init --remote
Yuchen Wu
  • 45
  • 1
  • 6
0
votes
1 answer

Jenkins multibranch scan branch and start all build job when Jenkins-master restart

I have too many multibranch tasks, and every task has many branches. Hundreds of build jobs were triggered when Jenkins restart. One of the scan log is as follows Checking branch release-13.6.2 Met criteria Takeover for multibranch-job-xxxx »…