简体   繁体   English

竹制品

[英]Artifact in bamboo

I want to ask you one question. 我想问你一个问题。 I'm trying to do artifact in bamboo but when I build a project with trigger in logs about artifacts I have this one - "Unable to publish artifact" and I don't know what I need to do. 我正在尝试用竹子做工件,但是当我用关于工件的日志中的触发器构建一个项目时,我有一个-“无法发布工件”,我不知道该怎么做。 When I create artifact in location I'm write folder with project name where project is and in copy pattern something like this **/ . 当我在位置中创建工件时,我将使用项目名称(项目所在的位置)和复制模式(如** /)编写文件夹

Eventually I need to build project after commit and put this project with artifact on server where I can check changes but I have problem with last step. 最终,我需要在提交后构建项目,并将此项目与工件一起放在服务器上,在这里我可以检查更改,但最后一步有问题。

Someone can tell me what am doing wrong? 有人可以告诉我做错了什么吗? This is build for .NET solution. 这是为.NET解决方案构建的。

When you specify an artifact in Bamboo, you reference it from bamboo's build directory. 在Bamboo中指定工件时,可以从Bamboo的build目录中引用它。 For example, if you project's directory structure (as pulled from your repo) looks like this: 例如,如果您项目的目录结构(从存储库中提取)如下所示:

projectname/
   folder1/
      subfolder1/
   folder2/
      subfolder2/

If you want to create an artifact out of the entire project you would use ./ as your starting location and to copy everything under it you would use this glob /**/* 如果要在整个项目中创建工件,则可以使用./作为起始位置,并复制其下的所有内容,请使用此glob /**/*

As another example, if you wanted to create an artifact from subfolder2 the location could be ./ and the glob would be projectname/folder2/subfolder2/**/* 再举一个例子,如果您想从subfolder2创建一个工件,则位置可能是./ ,并且全局名称将是projectname/folder2/subfolder2/**/*

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

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