Jenkins Multibranch Pipeline Lightweight Checkout
I asked the developer, Vivek Pandey, who added the lightweight checkout feature to the multibranch plugin and he said that's the default behavior for the multibranch pipeline. Here's his response.
For multi-branch pipeline project GitHub or Bitbucket light weight checkout is default behavior. With bitbucket it wasn’t and that’s what my PR fixed. So basically you don’t need to do any configuration, it should work out of the box.
Steve Wall
It's a good day when I get to be a geek! Technology has always interested me and the fact I get paid to do it is just an added bonus. I'm competent in areas of enterprise architecture, cloud architecture, and hands on implementation. During my career, I've had the opportunity play many roles including development, architecture, system administration, operations and technical management. For most of my career I've been a consultant. Recently I've been working on Infrastructure-as-Code (IaC) to create VMs and install Cloud Foundry on the major IaaS providers - vSphere, GCP, Azure, AWS. And helping large enterprises implement those solutions. In addition to the build out of PaaS infrastructure, I consult with large enterprise organizations regarding microservices architecture from a holistic perspective as well as the inner working of a given microservice. Addressing various Enterprise concerns such as security, availability, performance, zero down time deployments, etc...
Updated on August 09, 2022Comments
-
Steve Wall almost 2 years
The Jenkins Pipeline plugin has a feature known as "lightweight checkout", where the master only pulls the Jenkinsfile from the repo, as opposed to the entire repo. There's a corresponding checkbox in the configuration screen. I'd like to do a lightweight checkout in a multibranch pipeline, but I'm not seeing a checkbox in the multibranch configuration screen. Any ideas how to make this happen? I noticed some closed issues that suggest this feature is available, but I wasn't able to find any specifics on how to make it happen.
Related information:
https://issues.jenkins-ci.org/browse/JENKINS-42518
https://issues.jenkins-ci.org/browse/JENKINS-33273
https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/78