简体   繁体   English

结帐后的 Git LFS 拉取导致 jenkins 管道中没有任何步骤

[英]Git LFS pull after checkout results in no step in jenkins pipeline

Problem问题

After enable Git LFS pull after checkout , jenkins pipeline says "This stage has no steps".启用Git LFS pull after checkout ,jenkins 管道显示“此阶段没有步骤”。

I tried to enable it from either jenkins multibranch configuration or Jenkinsfile (which I name it Jenkinsfile_ios since I have another one for android) but both of their results are the same.我尝试从 jenkins 多分支配置或 Jenkinsfile(我将其命名为 Jenkinsfile_ios,因为我有另一个适用于 android 的配置)启用它,但它们的结果是相同的。

I've done lots of googling but there's no issue relate to this.我已经做了很多谷歌搜索,但没有与此相关的问题。 I am wondering if somebody already encountered this or it is a bug from git plugin.我想知道是否有人已经遇到过这个问题,或者这是 git 插件的错误。
Right now I am signing up to file issue to Jenkins.现在我正在注册向 Jenkins 提交问题。 After being approved I will file the issue.获得批准后,我将提交问题。 But before then hopefully somebody can help with this strange issue.但在那之前希望有人可以帮助解决这个奇怪的问题。

Thanks!谢谢!

Environment环境

osx high sierra osx 高山脉
Jenkins 2.89.2詹金斯 2.89.2

Jenkins Plugins (filtered, not through list) Jenkins 插件(过滤,不通过列表)

git 3.7.0 (same issue in 3.6.4) git 3.7.0(3.6.4 中的相同问题)
git-client 2.7.0 git 客户端 2.7.0
git-server 1.7 pipeline-build-step 2.6 git-server 1.7 管道构建步骤 2.6
pipeline-github-lib 1.0管道-github-lib 1.0
pipeline-graph-analysis 1.6管道图分析 1.6
pipeline-input-step 2.8管道输入步骤 2.8
pipeline-milestone-step 1.3.1管道里程碑步骤 1.3.1
pipeline-model-api 1.2.5管道模型 API 1.2.5
pipeline-model-declarative-agent 1.1.1管道模型声明代理 1.1.1
pipeline-model-definition 1.2.5管道模型定义 1.2.5
pipeline-model-extensions 1.2.5管道模型扩展 1.2.5
pipeline-rest-api 2.9管道休息 API 2.9
pipeline-stage-step 2.3管道阶段步骤 2.3
pipeline-stage-tags-metadata 1.2.5管道阶段标签元数据 1.2.5
pipeline-stage-view 2.9管道阶段视图 2.9

"This stage has no steps" is shown when the pipeline didn't get executed at all.当管道根本没有执行时,会显示“此阶段没有步骤”。 This means that the branch on which the Jenkinsfile is present didn't get checkout.这意味着 Jenkinsfile 所在的分支没有得到检出。

This can be due to some other files present aswell.这可能是由于还存在一些其他文件。 Enable GitLFS option in jenkins job configuration.在 jenkins 作业配置中启用 GitLFS 选项。

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

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