Jenkins 作业的 Git 仓库访问权限
[[git-plugin]] = Git 插件 :toc: 宏 :toc-title: == 简介 图像::images/jenkins-and-git.png[Jenkins 和 Git] git 插件为 Jenkins 项目提供基本的 git 操作。 它可以轮询、获取、检出、分支、列出、合并、标记和推送仓库。 toc::[] == https://github.com/jenkinsci/git-plugin/releases[GitHub 版本的变更记录] 自 2019 年 7 月 1 日起,发行说明已记录在 https://github.com/jenkinsci/git-plugin/releases[GitHub 发行中 (git 插件 3.10.1 及更高版本)。 之前的发行说明记录在 git 插件仓库链接:https://github.com/jenkinsci/git-plugin/blob/git-4.7.2/CHANGELOG.adoc[change 日志中。 == 管道
git 插件的 link:https://www.jenkins.io/doc/pipeline/steps/params/scmgit/[`scmGit` 参数] 与 Pipeline SCM 的 link:https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/[`checkout` 步骤] 一起使用,可将 git 仓库检出到 Pipeline 工作空间。 link:https://www.jenkins.io/redirect/pipeline-snippet-generator[Pipeline 语法片段生成器] 会指导用户选择检出选项。
git 插件包含用于 Jenkins 的多分支提供程序链接:https://www.jenkins.io/doc/book/pipeline/multibranch/[Multibranch Pipelines] 和用于 Jenkins 的多分支提供程序链接:https://www.jenkins.io/doc/book/pipeline/multibranch/#organization-folders[Organization Folders]。git 插件的多分支提供程序是一种基础实现,它使用命令行 git。当有相应的 git 提供程序时,用户应优先使用多分支实现。特定 git 提供程序的多分支实现可以使用 REST API 调用来改善 Jenkins 体验并增加额外功能。多分支实现可用于
[#introduction] [#changelog]
暂无开放 Issues,或尚未同步最近议题。