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

How to reuse workspaces between branches with multibranch pipeline on Jenkins?

I've set up multibranch pipeline to track my repo and automatically build and test for all merge requests. It works wonders, however, I noticed that Jenkins creates a new workspace for each new branch. It is a pretty big project with a heavy build…
Max Yankov
  • 12,551
  • 12
  • 67
  • 135
3
votes
1 answer

aggregating Artifactory buildInfo across stages and uploading environment variables

I have two separate problems. I am using a jenkins multibranch declarative pipeline. Within it, I have defined multiple stages. Issue 1 I have a download from Artifactory in one stage where I am initializing my environment. The pipeline's outputs…
Gregory Kuhn
  • 1,627
  • 2
  • 22
  • 34
3
votes
1 answer

How to distinguish snapshots in multi-branch builds?

We're running a Jenkins pipeline with multi-branch support on a Git repository. Whenever a new branch is created, a new pipeline instance is spawned automatically for the new branch. So far so good (btw. this is not specific to Jenkins, other CI…
3
votes
1 answer

Is it possible to trigger Multibranch pipeline job from a regular Jenkins job under "Build other Projects"?

I have 2 jobs. One is a regular freestyle job on Jenkins that is supposed to trigger another job which is a Multibranch pipeline job. The issue is whenever I enter the name of the Multibranch job in the "Projects to Build column", I get an error -…
3
votes
1 answer

Jenkins: disableConcurentBuild not working

I have a multibranch pipeline and I want to make sure it executes one run at a time. I cannot set a single executor on the agent since other jobs could run in other workspaces. Here is how my pipeline is scripted: /* Job properties */ properties([ …
Milan
  • 1,547
  • 1
  • 24
  • 47
3
votes
1 answer

How to provide access to users per branch level in Multibranch pipeline project?

In Jenkins, we have some multibranch pipeline projects with three branches Develop, Master and SIT. we have around 10 developers. For 5 developers, i should provide access to just develop branch to run. Also, i should restrict them to run master and…
user7486728
3
votes
2 answers

Get branch name in case of pull request jenkins multibranch pipeline

I am using Jenkins multibranch pipeline pull request feature when i print env.BRANCH_NAME it prints PR-pullrequestnumber. instead of that i want to get branch name how could i get it ?
deenbandhu
  • 599
  • 5
  • 18
3
votes
1 answer

Jenkins Multibranch pipeline job rate limit

I'm trying to set up a multibranch Jenkins pipeline job on Windows to detect new branches, and in this case, push feature branch packages to an internal nuget server. The source is held in Github and the rate limit of 60 calls/hour is reported and…
PhilGriffin
  • 638
  • 1
  • 5
  • 10
3
votes
1 answer

"polling ignores commits with certain messages" does not work for multi-branch pipeline

I have been trying to use Multi branch pipeline job. I want to skip the build job as soon as I find some text pattern as skip_ci in the commit message. I am able to achieve it in a simple pipeline job but the same does not work for multibranch…
3
votes
1 answer

Jenkins:Pipeline optional manual stage, that does not block any agent

Imagine a multibranch pipeline, that has stages deploy, test, publish The scenario: Run build Build finishes, but stages like publish are not executed Someone goes to some completed build and triggers the deploy or publish stage This triggers…
3
votes
1 answer

How to get all branches/jobs of a multibranch pipeline job?

Is there a way to get the names of all branches that the scan of a multibranch pipeline job has gathered? I would like to set up a nightly build with dependencies on existing build jobs and therefore need to check if the multibranch jobs contain…
Schubidu
  • 195
  • 1
  • 15
3
votes
1 answer

How to invoke action on branch removal for multibranch pipeline

Working with a multibranch jenkins pipeline (Jenkinsfile defined) - what techniques do people use for performing actions when the branch no longer exists? EG. Get Jenkins to perform removal of resources on a cloud provider such as AWS when a branch…
eggsy84
  • 1,059
  • 1
  • 14
  • 26
3
votes
1 answer

Multibranch pipeline - Jenkins - How to execute one branch at a time?

Merry xmas guys, I have got a very basic question that I didn't find out there: How to build branches one at a time? I actually have two branches to be built set in my multi-branch pipeline Jenkins process. However, when I hit run, if no changes,…
sebachili
  • 123
  • 1
  • 3
  • 10
3
votes
1 answer

BitBucket Team Multibranch pipeline job is ignoring PRs

I'm using the Bitbucket Branch Source Plugin to automatically configure multibranch pipeline jobs for every repo under a specific project directory within Bitbucket. One repo contains a valid Jenkinsfile. The master branch for that repo builds and…
willsters
  • 152
  • 10
2
votes
1 answer

Jenkinsfile: Disable UI parameter based on Git Branch name multibranch pipeline

I am looking for an option for multibranch pipeline where Jenkinsfile should disable/enable a Jenkins UI parameter based on git branch name. parameters { string(name: 'Cloud', defaultValue: 'AWS', description: 'Cloud Type') } But this will…
Krishna
  • 501
  • 1
  • 8
  • 17