Cloud Foundry 插件在从 Jenkins CF-AppResourcesFileModeInvalid (160003) 推送时抛出错误
Cloud foundry plugin throws error while pushing from Jenkins CF-AppResourcesFileModeInvalid(160003)
我正在尝试将应用程序从 Jenkins 推送到 Cloud Foundry。它抱怨这个:
org.cloudfoundry.client.v2.ClientV2Exception: CF-AppResourcesFileModeInvalid(160003): The resource file mode is invalid: File mode '444' with path '.git/objects/pack/pack-af4cdbe6faac9d245253dafc1ecae06dc3fa5816.pack' is invalid. Minimum file mode is '0600'
at org.cloudfoundry.util.JobUtils.getError(JobUtils.java:81)
at reactor.core.publisher.MonoThenMap$ThenMapMain.onNext(MonoThenMap.java:120)
at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:96)
我试过:
1.Doing chmod 666 ( and even 777) before the build step.
2.Adding these in my .cfignore:
scripts
.git/
.git/objects/pack/*
plugins/**/*
/.bundle
tmp/
.pack
- 在再次尝试之前擦除 jenkins 中的工作区和 cf 上的应用程序。
没有任何效果。
一件有趣的事情是在对 .cfignore 进行新的提交(编辑一行并推送到 git)之后,jenkins 中的第一个构建工作。后续构建失败。
有什么帮助吗?
谢谢!
根本问题是Cloud Foundry Java Client pushes the entire content of the configured path to the server. The Cloud Foundry CLI automatically filters out source control directories (and possibly all hidden directories) this filtering out the most common places to see < 0600
, but that’s not actually documented anywhere so we don’t match that behavior. I’ve chatted with the lead of the CLI and they’ll document that behavior at which point we’ll implement what they spec。
.cfignore
文件在客户端中也不起作用,但一旦 CLI 团队正确指定,我们也会工作 that issue。
我正在尝试将应用程序从 Jenkins 推送到 Cloud Foundry。它抱怨这个:
org.cloudfoundry.client.v2.ClientV2Exception: CF-AppResourcesFileModeInvalid(160003): The resource file mode is invalid: File mode '444' with path '.git/objects/pack/pack-af4cdbe6faac9d245253dafc1ecae06dc3fa5816.pack' is invalid. Minimum file mode is '0600'
at org.cloudfoundry.util.JobUtils.getError(JobUtils.java:81)
at reactor.core.publisher.MonoThenMap$ThenMapMain.onNext(MonoThenMap.java:120)
at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:96)
我试过:
1.Doing chmod 666 ( and even 777) before the build step.
2.Adding these in my .cfignore:
scripts
.git/
.git/objects/pack/*
plugins/**/*
/.bundle
tmp/
.pack
- 在再次尝试之前擦除 jenkins 中的工作区和 cf 上的应用程序。
没有任何效果。 一件有趣的事情是在对 .cfignore 进行新的提交(编辑一行并推送到 git)之后,jenkins 中的第一个构建工作。后续构建失败。
有什么帮助吗? 谢谢!
根本问题是Cloud Foundry Java Client pushes the entire content of the configured path to the server. The Cloud Foundry CLI automatically filters out source control directories (and possibly all hidden directories) this filtering out the most common places to see < 0600
, but that’s not actually documented anywhere so we don’t match that behavior. I’ve chatted with the lead of the CLI and they’ll document that behavior at which point we’ll implement what they spec。
.cfignore
文件在客户端中也不起作用,但一旦 CLI 团队正确指定,我们也会工作 that issue。