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

multibranchPipelineJob Job DSL: How to enable Filter by name (with wildcards)

How to enable in a Jenkins job DSL for a multibranch pipeline the behavior Filter by name (with wildcards). I tried it in following way but it didn't work. configure { def traits = it / sources / data / 'jenkins.branch.BranchSource' / source /…
0
votes
1 answer

Jenkins MultiBranchPipeline loads shared library repo first

I am experiencing an issue where the shared library is retrieved before the main repository is retrieved in my MBP job. This was not the case in my regular pipeline and freestyle jobs. Because a Jenkinsfile shared library method attempts to read…
0
votes
2 answers

jenkins Variables not showing up in shell command

I am trying to execute a shell command in my jenkinsfile but the variables that i set arent showing up in the shell command I am trying to execute. here is my code: def branchName = BRANCH_NAME def newBranchName = branch name.split('/')[1] pipeline…
0
votes
2 answers

Possible to extract part of $BRANCH_NAME string in Jenkins Pipeline?

I am currently building a multibranch pipeline. I am trying to build a docker image and tagging it with the branch name which will always be "feature/XXX-111". However, when i get the branch name using the $branch_name env variable the docker build…
0
votes
0 answers

Jenkins multi branch pipeline not triggered on deployment event

I have setup a job as a multi branch pipeline and I want to trigger it on a deployment event from github, but nothing happens when I do that. Jenkins manages the webhooks automatically. The deployment checkbox on the webhook is marked, and When I…
0
votes
1 answer

Jenkins - Multibranch Pipeline unexplained failure

In my pipeline, I make use of readJSON and writeJSON methods of the Pipeline Utility Step plugin to read/write files in pipeline stages. For a normal pipeline everything works great. However, when I create a "multibranch pipeline", the same pipeline…
0
votes
1 answer

Why does Jenkins multibranch pipeline job page show junit test result for each stage of pipeline which makes count of test incorrect

I am using Jenkins Ver:2.176.3 for declarative multibranch pipeline. I have junit test in my application code base and using maven surefire plugin to run unit test using maven command. Multibranch job page shows 'Test Result' link and 'Test Result…
0
votes
1 answer

How to use Jenkinsfile from other repo on multibranch

We have a source code of web application in a specific git repo. For that source code, I have created a multi-branch Jenkins project so every branch has it's own Jenkins history We have an automation pipe where it runs nightly and I need it to run…
Mickey Hovel
  • 982
  • 1
  • 15
  • 31
0
votes
1 answer

Jenkins CI workflow with separate build and automated test both in source control

I am trying to improve our continuous integration process using Jenkins and our source control system (currently svn, but git soon). Maybe I am thinking about this overly complicated, or maybe I have not yet seen the right hints. The process I…
0
votes
0 answers

Multibranch Pipeline Jenkinsfile 'cmd' is not recognized as an internal or external command, operable program or batch file

I am working on Jenkins [Multibranch Pipeline]. I configure the GitHub and its working fine.But I am facing an issue when I am trying to deploy the GitHub project to SALESFORCE production. I also placed Jenkins file in GitHub project. Here is the…
0
votes
1 answer

Jenkins Multibranch Pipeline: script / jenkinsfile as svn external

I have a multibranch pipeline in Jenkins. I want to include my script file (jenkinsfile) as svn file external into my development branches to organize the script centralized for all branches. Unfortunately the scan of the multibranch pipeline isn't…
j_d
  • 19
  • 1
  • 7
0
votes
1 answer

Jenkins Pipeline: Get path of builds directory / Get values of config.xml

I have a Jenkins multibranch pipeline which is polling periodically my svn for new commits. Running the pipeline, multiple log files are created which are saved in workspace directory (which will be cleaned for each new pipeline build). To save them…
j_d
  • 19
  • 1
  • 7
0
votes
0 answers

Bitbucket Server Webhook to Jenkins in multibranch Pipeline: Error: Jenkins response: No git jobs using repository

I have configured the Webhook to jenkins plugin in Bitbucket . Created a new Multibranch pipeline in jenkins, added source with Git and applied the git url and test is success. But while configuring the pluginin bitbucket and test configuration is…
0
votes
1 answer

Jenkins Multibranch Pipeline from Version Control (Bitbucket) - can I specify rules for specific branches?

I am currently creating a multibranch pipeline from BitBucket, which will build all branches automatically. That would be extremely helpful for pull requests and overall save a lot of time. However this specific project is a little bit different -…
0
votes
1 answer

Jenkins Multibranch Job configuration as a pipeline Job

I have mutibranch job in jenkins. Is there any way i can do the multibranch job configurations in a Jenkinsfile? like branchsource , behaviours etc in multibranch job i want to store as a code