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
4
votes
0 answers

In Jenkins is it possible to make "Pull Request" tab to be shown by default (instead of Branches)?

In Jenkins, we have a job created from a multibranch pipeline, we do all the actions from a pull request, so we want to show only the pull requests instead of both branches and pull requests, is there any way to achieve this? We want to show only…
S Mohan
  • 257
  • 4
  • 14
4
votes
2 answers

Job build not triggered after repository scan on Jenkins Multibranch Pipeline (changes detected)

I have set git post-commit hook which triggers scan on my Multibranch Pipeline. This scan detects changes (new commit) but do not triggers building job for changed branch. Scan Multibranch Pipeline Log Branch indexing ... git messages…
Paweł Madej
  • 1,229
  • 23
  • 42
4
votes
1 answer

Jenkins Multibranch Pipeline: How to checkout only once?

I have created very basic Multibranch Pipeline on my local Jenkins via BlueOcean UI. From default config I removed almost all behaviors except one for discovering branches. The config looks line follows: Within Jenkinsfile I'm trying to setup…
Vitaljok
  • 594
  • 1
  • 6
  • 13
4
votes
2 answers

Determine whether a Jenkinsfile runs from a multibranch pipeline

I have a multibranch pipeline that runs a Jenkinsfile of select branches. Now I need to run that same Jenkinsfile with parameters, so I figured I could use a regular pipeline. Now all I have to do is to determine whether I run in a multibranch…
towel
  • 2,094
  • 1
  • 20
  • 30
4
votes
1 answer

How to configure basic branch build strategies plugin using job dsl?

The multi branch pipeline plugin, awesome as it is, doesn't build tags out of the box. The usage of the basic-branch-build-strategies-plugin is required to enable tag discovery and building. My question is directly related to: Is there a way to…
Brian Call
  • 41
  • 1
  • 5
4
votes
1 answer

How to get the list of labels of the Github PR that triggered my multibranch Jenkins build

More precisely I need to get the list of labels of the PR that triggered my multibranch build. Is it possible? I am aware of https://github.com/jenkinsci/pipeline-github-plugin but incompatible version of Jenkins and multibranch pipeline is used.
ludenus
  • 1,161
  • 17
  • 30
4
votes
2 answers

Can't filter by name on Github multi branch pipeline

I'm not sure what I am missing but I can't either Filter by name (with regular expression) or Filter by name (with wildcards) to match any branches. Even with the default .* Discover branches works fine. Am I missing something obvious?
David Williams
  • 401
  • 3
  • 15
4
votes
1 answer

Merge Request trigger for multibranch pipeline in Jenkins

How can you trigger a multi-branch pipeline on a merge request? The configurations do not save for specific branches in a multi-branch pipeline. And yes I do know that a single pipeline has an option to trigger on merge requests but I am looking for…
Nadim
  • 81
  • 1
  • 4
3
votes
1 answer

Jenkins Multibranch Pipeline - scan is not triggered from Bitbucket when a PullRequest is created

We have configured Jenkins multibranch pipelines to automatically build feature branches that are filed as Pull request in Bitbucket. For the Webhook creatin in Bitbucket(Server), we use Parametrized Builds for Jenkins. In Jenkins we have…
Carsten Hilber
  • 246
  • 1
  • 3
  • 13
3
votes
0 answers

In a Jenkins multibranch plugin cancel previous pull request builds when a new commit is pushed

Having used Jenkins freestyle project and Github pull request builder plugin I am able to Cancel Build on Update using below configuration under Build Triggers. However, I want to do the same in Multi-branch pipeline? Any pointers on how to do so?
iDev
  • 2,163
  • 10
  • 39
  • 64
3
votes
1 answer

Gitea Jenkins plugin: discovering branches to build

Gitea recommends a separate Gitea Plugin for Jenkins. I'm puzzled why two identical builds are triggered when a PR is created. I'm trying to achieve the following: Without a PR, a push to a branch should NOT trigger a build Every time a PR is…
3
votes
1 answer

Disable Concurrent Builds on Multibranch Pipeline Jobs with Job DSL

I am trying to create Multibranch Pipeline Jobs using Job DSL, but I want to disable concurrent builds on each branch. I have tried the following code snippet but it didn't work, "Do not allow concurrent builds" is still unchecked on new…
farukdgn
  • 31
  • 2
3
votes
1 answer

How to build only approved pull requests using the multi-branch plugin

I use the multibranch plugin to scan new pull requests, and I need to limit my builds to approved pull requests only. I filter the approved pull requests after they are scanned, however the repository scanner can only tell whether a pull request has…
towel
  • 2,094
  • 1
  • 20
  • 30
3
votes
0 answers
3
votes
2 answers

Jenkins Multibranch Pipeline: git-lfs command not found on Mac node

I've got a Jenkins multibranch pipeline configured to run tests and sonarqube scans on a mac 10.14 node thats configured via javaws. At checkout, it fails during scm checkout with: [Pipeline] End of Pipeline [Bitbucket] Notifying commit build…