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
6
votes
2 answers

JenkinsFile default workspace name is too long

I am currently setting up jenkins with bitbucket. I have create a new jenkins project as multibranch project. The JenkinsFile is hosted inside the git repository. How can I force jenkins to generate a shorter branch name than the default…
pix
  • 1,264
  • 19
  • 32
6
votes
2 answers

Set common build parameters for every branch in Jenkins multibranch pipeline

I have a Jenkins multibranch item and several branches where the Jenkins pipeline file is. I also have several common parameters which are actual for every of those branches (like test Groups to run, selenium properties etc.) How can I define the…
6
votes
1 answer

jenkins multibranch jenkinsfile SVN checkout

I have a Jenkinsfile located in [my svn branch]\build folder, and it checks out code to the slave node and builds. My multi branch project finds the branch correctly, but it checks out the entire svn branch on the master just to read the jenkinsfile…
Gilad Baruchian
  • 930
  • 3
  • 14
  • 30
6
votes
1 answer

Jenkins 2 Multibranch Pipelines - How can I limit the visibility/execution of branches using the Role Strategy Plugin?

I am using multibranch pipelines in projects with two branches: develop and master. This creates two subprojects, one for each branch: App_Pipeline |---master |---develop I have set up the Role Strategy plugin to control the authorization…
6
votes
2 answers

How to get the displayName of a Jenkins Multibranch Pipeline Job

I've put all my Jenkins logic in a structured pipeline script (aka Jenkinsfile). If something goes wrong, i m sending mails. For the subject i want to use the displayName of the job and not the jobs id env.JOB_NAME (as they are driven by access…
dag
  • 1,133
  • 12
  • 25
5
votes
1 answer

How to retrigger GitHub PR build in Jenkins multibranch pipeline with comment?

I'm evaluating multibranch pipelines. I created a repo, with a jenkinsfile. The branches were detected, builds were triggered on PR. Now I'd like to rebuild on command via a comment on the GitHub PR, I installed the Multibranch Scan Webhook Trigger…
David Bensoussan
  • 2,887
  • 2
  • 38
  • 55
5
votes
2 answers

Set a SonarQube webhook in Jenkinsfile

I'm trying to create a Jenkins multibranch pipeline where on every push to bitbucket, a SonarQube analysis is performed on that branch of the project. Jenkins correctly creates the new job for each branch and a new project is created in SonarQube…
DarkHark
  • 614
  • 1
  • 6
  • 20
5
votes
1 answer

How to add webhooks in gitlab for multibranch pipeline jenkins

I want to trigger multi-branch pipeline for every push, can anyone please let me know can how can we configure web-hooks in gitlab for multi-branch pipeline.
user_9090
  • 1,884
  • 11
  • 28
5
votes
2 answers

Triggering Jenkins Multibranch pipeline when there is a pull request created in GitHub

I'm using Jenkins Multibranch pipeline. I've configured the APIs(github-webhook and ghprbhook) in GitHub. I want to trigger the Multibranch Pipeline whenever there is a Pull Request on GitHub (without using periodical option). For example, if i…
sunbogaa
  • 405
  • 2
  • 6
  • 12
5
votes
1 answer

How to use a jenkins multibranch pipeline with a monorepo

I have a project in a monorepo with 2 artifacts : a frontend and a backend. my-project frontend Jenkinsfile backend Jenkinsfile I'd like to use Blue Ocean and multibranch pipeline but is there a way to use two Jenkinsfile and two…
5
votes
1 answer

How to set job properties for jobs within a Jenkins multi-branch pipeline project?

Does anyone know the correct method for setting job properties, specifically build triggers, from within a Jenkinsfile? (declarative pipeline script, in a multi-branch pipeline job). For clarity I need to set specific build triggers for underlying…
4
votes
3 answers

Multi branch Pipeline in Azure Devops

I am trying to build a YAML release pipeline in Azure DevOps for that I have created multiple branches to keep environment-specific files I created 4 pipelines for release as well: Problem: Whenever I am making any changes in any branch, all the…
4
votes
2 answers

Jenkins MultiBranchPipeline Failing with ModelInterpreter.groovy: 43: unable to resolve class javax.annotation.Nonnull

I am trying to setup a multi branch pipeline between Github and Jenkins. I am working on a spring boot project and I have setup my local jdk and maven within Jenkins. I am running the pipeline using jenkinsfile, the pipeline code is as…
shred22
  • 83
  • 1
  • 10
4
votes
1 answer

How to disable a specific branch in a Jenkins Multibranch job?

I have a multibranch job in my Jenkins, and it has been running on multiple branches over the last few months. Now I finished working on some of the branches, and I want to prevent them from running again, but I didn't find a way to disable a…
4
votes
2 answers

How to do a clean SVN checkout/update in multibranch pipeline

I am using a multibranch pipeline with SVN. I currently don't use an explicit checkout scm command but I am using the declarative default checkout. My problem is, that this only seems to perform an svn update. I would however like to use the…
nogenius
  • 574
  • 1
  • 6
  • 18