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

How to specify custom path for remote node on Jenkins?

I've a Jenkins server. It runs on D:\Jenkins. In my jenkins file, I've the following: pipeline { agent { node{ label 'windows-node' customWorkspace "${JENKINS_HOME}\\${env.BRANCH_NAME}" } …
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
1 answer

Preventing default checkout in shared Jenkinsfile

I have a number of multi-branch pipeline jobs in Jenkins on Windows, each of which uses a standard procedural Jenkinsfile which contains various methods for running the build on our build farm, including methods for calculating a sensible place to…
ewanc
  • 1,284
  • 1
  • 12
  • 23
1
vote
0 answers

Jenkins declarative pipeline - multibranch run builds one by one

I am struggling to get this thing working: In my multibranch pipeline project, I applied the lock but still two branches are build in time. Any solution here?? Our idea is to build one branch in time.. // Build the branch stage('Build the…
1
vote
1 answer

Jenkins multibranch pipeline scan node

I have configured multiple nodes in Jenkins and only one has an access to git server (firewall protection). I want to use specific node for Multibranch Pipeline scan, but I cannot find any option to do so. Is there possibility to define what machine…
1
vote
1 answer

BlueOcean is not asking for some of my jenkins multibranch parameters

I recently modified the Jenkinsfile of my branch(for now, I've only one branch with this jenkins branch). When I try to launch the multibranch pipeline for this branch, I've a lot of parameters requested, but not the new one I've added. If I go into…
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
1 answer

multibranch pipeline job do not start the build step even downstream finished building

I run a multibranch pipeline with jenkinsfile and I got 'Scheduling project: caiwu » sis-server-test',but not 'Starting building: ' appears until the job sis-test funish building,who can give me a hand? pipeline{ agent {label 'test-slave'} …
Gavin
  • 11
  • 2
1
vote
1 answer

How to add Hg installation option in multibranchPipelineJob?

I want to add the mercurial installation option since it is not supported for multibranchPipelineJob in Jenkins. I thought of using the configure block, but it creates a new node "jenkins.branch.BranchSource" instead of updating the existing…
Jain
  • 75
  • 1
  • 8
1
vote
1 answer

Trigger deployment job from Multibranch pipeline Jenkinsfile

So, we are currently using Multibranch pipeline to run our Continuous Integration process and the last stage is publish the deployable artifact in our JFrog Artifactory "dev" repository and this works! My problem is that, if I want to automatically…
1
vote
1 answer

Jenkins pipeline library calls inside closures cause security exceptions

We are using multibranch pipelines with organization folders (Bitbucket branch source plugin). I am DRY-ing out our pipelines using shared libraries, taking hints from Jenkins docs and forum posts. I am also providing scripts to other developers,…
user944849
  • 14,524
  • 2
  • 61
  • 83
1
vote
0 answers

jenkins 2x multibranch pipeline Behaviors

Can someone please explain different behaviors option available as a part of Jenkins 2x Multibranch Pipeline and what is the right strategy to choose in an enterprise environment. I see three options: Discover branches Discover pull requests from…
RSharma
  • 120
  • 7
1
vote
1 answer

Is there a way to enable post process actions in a Jenkins multibranch pipeline job?

I have a projects that uses a multibranch pipeline to fetch all branches of a git server and then builds it. I need to do some post build actions there, but for some reason there is not post action configuration available in the builds. Neither in…
user5444681
1
vote
0 answers

Why Jenkins resets build number in Pipeline jobs

I am using Jenkins with multiple tools (node, maven etc) and some of build versions are basing on build number. Jobs configured with Pipeline (Bitbucket Team Project). Sometimes Jenkins just removes most of builds from branches, and restarts…
user3650655
  • 361
  • 3
  • 8
1
vote
0 answers

How to detect a merge and perform a cleanup action

This is what I have now: 1. Create a feature branch with jenkinsfile in it 2. Commit to your new feature branch and the pipeline kicks off 3. The pipeline deploys the app to a new VM/environment/container/whatever 4. The environment/VM persists…
red888
  • 27,709
  • 55
  • 204
  • 392
1
vote
2 answers

Centrally managed Jenkinsfile

I'm using Jenkins multibranch pipeline. I have created a Jenkins file with the help of the Pipeline syntax generator. My Jenkinsfile is working perfectly and as expected. But now I want to manage this Jenkinsfile centrally so I don't have to copy…
1
vote
1 answer

Configuring Jenkins Multibranch Pipelines without the GUI

Is it possible to configure Jenkins Multibranch Pipelines - as well as the associated credentials, plugins (for bitbucket repos a plugin is required), and nodes - from the terminal? My concern is that, at best, automating the configuration of a…