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

Jenkins Declarative Pipeline - Set PATH from shared library

I have a bunch of multibranch declarative pipelines that use the same shared library. In every pipeline I need to do define a custom path: environment { PATH = "$PATH:$HOME/my/cool/scripts:$HOME/some/other/scripts:/yet/another/path" } I thought…
patrick3853
  • 1,100
  • 9
  • 17
0
votes
1 answer

Jenkins multibranch pipeline use Variable in Project Repository

Our Jenkins instance holds a lot of pipelines that their source is in a private git server, so all the paths are ${SERVER_URL}/group/repo.git. Today, we are using a hard-coded path all over the Jenkins Pipeline Configurations and Jenkinsfile, but in…
baruchiro
  • 5,088
  • 5
  • 44
  • 66
0
votes
1 answer

Problem with passing parameters to Jenkins build using Jenkins Job Builder

I want to pass custom parameters to my Jenkins builds using Jenkins Job Builder. My current job definition YAML file and configuration file look like this: deploy.yaml - job: name: 'TestJobName' display-name: 'TestJobName' description:…
0
votes
0 answers

Throttle Concurrent Build Plugin Not working for the Initial Build

With the intention of Restricting to a single build at any point within a Multi-branch Pipeline Project, I have configured using https://plugins.jenkins.io/throttle-concurrents/#example-3-throttling-of-declarative-pipelines in my Jenkins file as…
0
votes
2 answers

Jenkins declarative pipeline - Trigger Jenkinsfile from another Jenkinsfile

I have a Jenkins MultiBranch pipeline project that points to a Jenkinsfile in my git repo. I want it to trigger another Jenkinsfile that is located in the same repo but in different folder. How can it be done? Thanks!!!
0
votes
1 answer

Jenkins build multibranch pipeline from another multibranch pipeline

I have Jenkins setup with 2 multibranch pipeline which depend on each other let say multibranchPipelineA and multibranchPipelineB. I would like a job from multibranchPipelineA to build specific branch in multibranchPipelineA and wait the build to…
Lê Khánh Vinh
  • 2,591
  • 5
  • 31
  • 77
0
votes
0 answers

How to read JSON elements from Jenkinsfile for multibranch pipeline

I am looking for the method of pulling JSON elements from the webhook request in a jenkins multibranch pipeline build, which is orchestrated by a Jenkinsfile using declarative pipeline syntax. (The regular Jenkins pipeline job has a "Generic…
0
votes
0 answers

Moved jenkins job from pipeline to multibranch pipeline, now a git checkout doesn't work?

I recreated a job to be a Multibranch pipeline, so I could better isolate the changes being tested from the prod build. However, directly after changing it, with no changes to the Jenkinsfile, I'm getting the below…
0
votes
1 answer

Analysing manually added project with specified quality gate

I am interested in analysising my Jenkins builds via SonarQube. Initially, I have used the following code stage('SonarCloud') { steps { withSonarQubeEnv('SonarQube') { sh 'mvn clean package sonar:sonar ' } …
Joe
  • 337
  • 6
  • 21
0
votes
1 answer

Jenkins Environment Variable String Interpolation for Setting Custom Workspace

I am using a multibranch pipeline in Jenkins and I need to set the name of the custom workspace directory dynamically based on the branch name that is being built. When I define the custom workspace for the pipeline, I attempt to access the…
0
votes
1 answer

Work around global webhook for sonarQube Quality Gate

I am interested in including quality gate for my projects. Once built at Jenkins, I have added a script that creates a project on SonarQube server and decides if quality of testing is sufficient (code origin can be found here). Script is…
Joe
  • 337
  • 6
  • 21
0
votes
1 answer

Build Jenkins job with Build periodically option with different argument

I have a Jenkins job which accepts only BranchName(bitbucket) as an input parameter. I have scheduled this Job to run every morning 7 AM with Build periodically option H 7 * * *. On triggering automatically, it takes default input parameter as…
0
votes
1 answer

Call Multibranch pipeline A from Multibranch pipeline B located in 2 different folders in Jenkins

I am working on organizing my jobs using folder in Jenkins. This is how my multibranch pipelines are…
0
votes
1 answer

Jenkins Multibranch pipeline pull request

I am using multibranch pipeline for pullrequest. When a pr is created it triggers the pullrequest job. Is there anyway to trigger the job only on specific pull requests instead of all. example: I have three branches develop, fb and master. I want to…
Abhilash
  • 15
  • 5
0
votes
1 answer

Parameterize my repo url by parsing webhook request body/JSONpath

I am working on a multibranch pipeline Jenkins setup and build is triggered using webhook in Git.. Here I have selected Git Branch source as - Git. When I push any change in git, webhook creates a request body with all push event details. How can I…