Jenkins多分支管道轻量级结帐 [英] Jenkins Multibranch Pipeline Lightweight Checkout

查看:67
本文介绍了Jenkins多分支管道轻量级结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins Pipeline插件具有称为轻量结帐"的功能,其中主服务器仅从仓库中提取Jenkinsfile,而不是整个仓库.配置屏幕中有一个对应的复选框.我想在多分支管道中进行轻量级签出,但是在多分支配置屏幕中没有看到复选框.有什么想法可以做到这一点吗?我注意到一些封闭的问题表明该功能可用,但是我找不到有关如何实现此功能的任何细节.

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.

相关信息:

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

推荐答案

我问了开发人员Vivek Pandey,他将轻量级的checkout功能添加到了multibranch插件中,他说这是multibranch管道的默认行为.这是他的回应.

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.

对于多分支管道项目GitHub或Bitbucket,轻量级签出是默认行为.使用bitbucket并不是,这就是我的PR修复的问题.因此,基本上您不需要进行任何配置,它应该可以立即使用.

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.

这篇关于Jenkins多分支管道轻量级结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆