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
1 answer

Selecting deployment configuration based on branch

At the moment I have a working Jenkins declarative pipeline set up as a paramterized build, and a git pre-push hook set up to build it. I would like to migrate to a multi-branch setup, where the feature/ and development branches are…
JoSSte
  • 2,953
  • 6
  • 34
  • 54
0
votes
1 answer

Run nightly jobs on multibranch pipeline with declarative Jenkinsfile without deprecated feature 'Suppress automatic SCM triggering'

Jenkins ver. 2.150.3 I have a multi-branch pipeline set up. I am using a declarative Jenkinsfile. I have a set of jobs which take a long time to run. I want these to run over night for any branches which have changes. In the past, one could use the…
0
votes
1 answer

Jenkins when with Build Trigger

I have a multibranch job in my jenkins, what I have a webhook setup from my github to my jenkins that send every pull request changes and issue comments. What I'm trying to do is let github send the pull request changes for indexing purposes, but…
0
votes
2 answers

Jenkins Scan Multibranch Pipeline stopped detecting develop branch

I am using an organization folder in Jenkins to discover all repositories that contain a Jenkinsfile. It had been working fine until recently. At some point, the develop branch of one of the repositories was removed. That branch does exist and…
codependent
  • 23,193
  • 31
  • 166
  • 308
0
votes
0 answers

Is there a way to build all branches of an multibranch pipeline only into one directory?

We have a Unity Project that we build with Jenkins. And you can enable incremental building for those builds. That means if I build branch1 ones it takes around 50 min. But if I build a commit to that branch it only takes 15 min. Now for every new…
Johann
  • 3
  • 3
0
votes
2 answers

Multibranch Pipeline job configuration with logrotator using DSL

I'm using jenkins job dsl to configure my multibranch pipeline jobs. Actually my all settings are working except logRotator. My aim is to delete the old builds and keep a particular number of build. I can use options { …
0
votes
1 answer

How to automate job running after another job succesfully completed?

Suppose i have two multi-branch pipeline jenkins job ABC and XYZ, now i want to start XYZ job automatically while ABC job completed successfully. How can i do it ?
user11270902
0
votes
1 answer

Can't disable Periodically if not otherwise run in Jenkinsfile

In my Jenkinsfile, I want to disable the Scan Multibranch Pipeline Trigger: "Periodically if not otherwise run", but I can't find solution for Jenkins version 2.164 Does anyone know the correct syntax?
wonder garance
  • 329
  • 1
  • 6
  • 14
0
votes
1 answer

Scan multibranch now builds every (also unchanged) job

We have setup multiple multibranch pipeline projects. When clicking on the button 'Scan Multibranch Pipeline Now' all jobs are triggered and built again. It does not matter whether or not there are changes, every job will just start building. When…
Gertray
  • 25
  • 7
0
votes
0 answers

Build access for Multi Branch Pipeline Job in Jenkins

In Multi Branch pipeline Jenkins job is there anyway to allow only specified users to build jobs of few branches. Example :- branches release/* should be build only by specified users
0
votes
2 answers

How to get config.xml for jenkins pipeline job

I have a requirment, need to backup config.xml for my jenkins jobs. Here i have created lot of pipeline jobs and build them using docker slave. Please help how to get config.xml for those pipeline job to backup purposes?
0
votes
1 answer

Jenkins DSL multibranch pipeline github push trigger

I am using the jenkins dsl plugin multibranchpipeline job(https://jenkinsci.github.io/job-dsl-plugin/#path/multibranchPipelineJob) to create a multi branch pipeline. I have created jenkinsfile which handles the build jobs for each branches. I…
0
votes
1 answer

Jenkins Pipeline to test iOS app on multiple simulators and sdk versions

I've build Jenkinsfile for multibranch-pipeline as on this gist: https://gist.github.com/nysander/0911f439bca7e046c765c0dc79e35e9f My problem is that I want to automate testing on multiple simulators and multiple iOS SDK versions. To make this work…
Paweł Madej
  • 1,229
  • 23
  • 42
0
votes
3 answers

Jenkins - Multibranch pipeline build on push

I'm trying to setup a multi-branch pipeline project in Jenkins. Ideally, I would like the branch pipelines to be build once the developers push new code. For example, if a developer pushes to a 'dev' branch then the 'dev' pipeline will build…
0
votes
2 answers

Infinite Loop at Multibranch Pipeline Jenkins creation

I've been dealing with a boring trouble in Jenkins where happens de following. I need to create a Multibranch Pipeline to build a project with CD. But it's not working, because when I click "OK" to create the job, my jenkins fall in a infinite loop…