Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好 #4

Open
BillllX opened this issue Jan 13, 2017 · 3 comments
Open

您好 #4

BillllX opened this issue Jan 13, 2017 · 3 comments
Assignees

Comments

@BillllX
Copy link

BillllX commented Jan 13, 2017

2017-01-13 10 50 32

您好,非常感谢您提供的这个插件,有个问题困然我比较久了,希望您帮忙关注 我的目录如上图,根据您的说明,我把artifacts路径配置为**/**(在ssh上传中有效可用),但是上传到oss上的时候,他并没有按照上图的形式,建立目录树,而是把所有的文件都拿出来放到oss的目录下,不知道是否是我的配置问题?辛苦您帮忙解答 谢谢
@HuangJian
Copy link

HuangJian commented Jan 13, 2017

for (FilePath src : paths) {
    String key = "";
    if (Utils.isNullOrEmpty(expVP)
            && Utils.isNullOrEmpty(embeddedVP)) {
        key = src.getName();
    } else {
        String prefix = expVP;
        if (!Utils.isNullOrEmpty(embeddedVP)) {
            if (Utils.isNullOrEmpty(expVP)) {
                prefix = embeddedVP;
            } else {
                prefix = expVP + embeddedVP;
            }
        }
        key = prefix + src.getName();
    }

这里只是读取了文件名作为OSS object的key,并没有将路径信息包含进去。不是你的设置问题。

@HuangJian
Copy link

@BillllX
为了有效沟通,以后提issue时请在标题上简短描述问题

@fit2cloud
Copy link
Owner

Understand, we haven't implemented that yet.

@fit2cloud fit2cloud self-assigned this Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants