在Cloud Foundry中进行登台-.cfignore [英] Staging in Cloud Foundry - .cfignore

查看:97
本文介绍了在Cloud Foundry中进行登台-.cfignore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有.cfignore个文件,提到了不应在Cloud Foundry中暂存的文件.

We have .cfignore file mentioning the files that should not be staged in Cloud Foundry.

通过CF CLI工具,cf push正在考虑在将文件推送到Cloud Foundry之前忽略.cfignore中提到的文件.

Through CF CLI tool, cf push is considering to ignore file mentioned in .cfignore before pushing files to Cloud Foundry.

但是使用 push到Cloud Foundry 插件配置的Jenkins不会考虑忽略.cfignore

But Jenkins configured using push to cloud foundry plugin does not consider ignoring the files mentioned in .cfignore

由此,Cloud Foundry在登台时会出现一些不良文件,从而使登台失败.

With this, Cloud Foundry some undesirable files at staging time, which makes staging failed.

如何解决此错误?

推荐答案

通过CF CLI工具,cf push考虑在将文件推送到Cloud Foundry之前忽略.cfignore中提到的文件.

Through CF CLI tool, cf push is considering to ignore file mentioned in .cfignore before pushing files to Cloud Foundry.

是的,这是官方cf cli的标准行为.

Yes, this is the standard behavior of the official cf cli.

https://github.com/cloudfoundry/cli

但是Jenkins使用Push to cloud Foundry插件配置的情况下,不考虑忽略.cfignore中提到的文件

But Jenkins configured using push to cloud foundry plugin does not consider ignoring the files mentioned in .cfignore

官方cf cli只是可以与Cloud Foundry API进行交互的众多客户端之一.仅仅因为cf cli表现为一种方式,并不保证其他客户端也会表现为相同的方式.如果您选择使用的客户端没有按照您希望的方式与客户端的作者/所有者一起打开错误/功能请求,或者切换并使用提供所需功能的其他客户端.

The official cf cli is only one of many clients that can interact with the Cloud Foundry API. Just because the cf cli behaves one way, does not guarantee that other clients will behave the same way. If the client you've chosen to use does not behave the way you want open a bug/feature request with the author/owner of your client, or switch and use a different client that offers the functionality you want.

希望有帮助!

这篇关于在Cloud Foundry中进行登台-.cfignore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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