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

How to retrieving always the branch name from BRANCH_NAME and CHANGE_BRANCH environment variables in Jenkins multibranch projects?

I'm working on a Jenkins multibranch project and when a branch is built, BRANCH_NAME and GIT_BRANCH is set to the name of the branch (master) and CHANGE_BRANCH does not exist BRANCH_NAME=master GIT_BRANCH=master CHANGE_BRANCH not exist when a…
0
votes
0 answers

How do I override Jenkins's URL child prefix in a multi-branch pipeline?

How do I override Jenkins's URL child prefix in a multi-branch pipeline? We are using the context aware credential store of Conjur Secrets plugin. We want to sync credentials to only one branch of a multi-branch pipeline. We have configured the…
Yo mama
  • 3
  • 3
0
votes
1 answer

How to configure separate jobs/pipelines using multiple Jenkinsfile under a same repository

Through Jenkins GitHub Organizations folder, is it possible to configure two different jobs/pipelines by having multiple Jenkinsfile under a single repository. The source code in my repo has multiple functionality and generates artifacts for each…
0
votes
0 answers

How can a seeded Job be deleted automatically

I have a multibranch pipeline created using DSL Plugin in Jenkins. Les't call this pipeline BuildPipeline. As a last step in the pipeline we are running this DSL script to seed one other Pipeline for Deploy the feature work to some…
0
votes
0 answers

Groovy script for Jenkins to get active jobs/pipelines and count and excluding active and disabled multibranch jobs/branches

In Jenkins, I looking for the Groovy script in which I want to list all Jenkins jobs/pipelines active and disable jobs/pipelines and also count and exclude active and disabled multibranch jobs/branches using the Groovy script. I have tried a couple…
KNCK
  • 103
  • 2
  • 12
0
votes
0 answers

How to display runs with different stages on multibranch pipeline status page

Jenkins will only display the stages since the last change to the list of the stages in the job. So for example if in the Jenkinsfile you removed one stage and it went down from 4 to 3 total stages then all previous runs stages will not be displayed…
Zloj
  • 2,235
  • 2
  • 18
  • 28
0
votes
2 answers

Jenkins: Generic Webhook Trigger Plugin and Multibranch Scan Webhook Trigger - Issues with genericVariables

Enquiry: Does anyone else have any ideas? I have tried around a bit in the last few days - unfortunately without any results. The Jenkins log does not give any results either. Does anyone else have an approach I could follow? Addendum part 3: I have…
0
votes
1 answer

Get all branches in multibranch pipeline and get all active pipeline job which exclude disabled multibranch pipelines and its branches

I'm working on the groovy script to get all active multibranch pipelines and disabled multibranch pipeline list Below is the groovy script and I was able to get this To get the list of multibranch…
KNCK
  • 103
  • 2
  • 12
0
votes
1 answer

How can I re-run PR build in Jenkins multibranch pipeline when base branch updated?

I create a Jenkins job with multibranch pipeline, and triggered by develop and PR-* branches. By setting strategy to "All branches" and "Discover pull requests from origin" to "Merging the pull request with the current target branch revision", I can…
0
votes
0 answers

Jenkins multi-branch pipeline fails with timeout

I have a Jenkins pipeline that uses a multi-branch checkout, which fails with a timeout. But it behaves strangely, I run it 1, 2, 3 times, it fails due to timeout, and when I run it a 4th time, it builds as expected! I changed nothing! And it…
Elydasian
  • 2,016
  • 5
  • 23
  • 41
0
votes
0 answers

Jenkins Multibranch Pipeline can't find Jenkinsfile in subdirectory using svn

I'm trying to set up a build using Multibranch. I'm basically having the same problem as stated here, but our SCM is Subversion. The Bug in the Bitbucket Branch Source Plugin as described here can therefore be ruled out, especially since our Jenkins…
0
votes
1 answer

Is there a way to build jobs only for pull request events in multibranch-pipeline?

I migrated from ghprb (https://plugins.jenkins.io/ghprb/) to multibranch-pipeline. It seems that ghprb is no longer under development. It also has limited functionality. Anyway, so I changed it to multibranch-pipeline, but when creating a pull…
WonChul Heo
  • 242
  • 1
  • 12
0
votes
0 answers

JENKINS-55116 - Branch missing BranchJobProperty is unable to fix itself in a Multibranch pipeline

When I restart Jenkins, randomly children jobs lose the config.xml, I have the last version of multibranch plugin. I tried everything even when I fix the branches manually it get lost again Fix branches manually, upgrade plugins version
0
votes
0 answers

How to run jenkins pipeline of jenkins multibranch pipeline

I have multibranch pipeline, and I need to run a regular pipeline. I try: build job: 'secondPipeline', parameters: [[$class: 'StringParameterValue', name: 'BRANCH', value: "${BRANCH}"]], wait: false But it doesn't work
0
votes
0 answers

Why Multibranch Pipeline job name takes only 32 character?

When I build a job using Multibranch pipeline, Jenkins is not creating workspace repository which is more than 32 character. It trims the character from starting of the job name. Job name: multi-branch-jenkins-pipeline Branch: Dev what i want…