简体   繁体   English

Jenkins Multibranch管道轻量级结账

[英]Jenkins Multibranch Pipeline Lightweight Checkout

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. Jenkins Pipeline插件有一个称为“轻量级结帐”的功能,其中主服务器只从repo中提取Jenkins文件,而不是整个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. 我想在multibranch管道中进行轻量级检出,但我没有在multibranch配置屏幕中看到一个复选框。 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-42518

https://issues.jenkins-ci.org/browse/JENKINS-33273 https://issues.jenkins-ci.org/browse/JENKINS-33273

https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/78 https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/78

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. 我问开发人员Vivek Pandey,他将轻量级结账功能添加到multibranch插件中,他说这是multibranch管道的默认行为。 Here's his response. 这是他的回应。

For multi-branch pipeline project GitHub or Bitbucket light weight checkout is default behavior. 对于多分支管道项目,GitHub或Bitbucket轻量级结账是默认行为。 With bitbucket it wasn't and that's what my PR fixed. 使用bitbucket它不是,这就是我的PR修复。 So basically you don't need to do any configuration, it should work out of the box. 所以基本上你不需要做任何配置,它应该开箱即用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM