首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >竹子不想创造神器

竹子不想创造神器
EN

Stack Overflow用户
提问于 2014-05-08 22:35:53
回答 2查看 10.4K关注 0票数 10

在用竹子构建的过程中,我们创建了文件/var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/release/dev_patch_release.tar.bz2。此文件已存在,请使用命令行进行检查。

在“工件定义”中,我有以下模式:**/release/*.bz2

但不幸的是,在构建完成后,在竹子工件中构建-> -> No artifacts have been found for this build result.

同时,我在JUnit成功解析的**/extra/build/logs/*.xml上进行了单元测试。

所以,我还用**/extra/build/logs/*.xml创建了另一个工件模式--竹子仍然看不到它,但是JUnit会解析它。

如何使用竹子创建工件dev_patch_release.tar.bz2

竹子构建日志:

代码语言:javascript
复制
simple      08-May-2014 23:11:33    Build Dev Patch - Release and Deploy #17 (T4-TGDP-RD-17) started building on agent Agent2
simple  08-May-2014 23:11:33    Build working directory is /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD
simple  08-May-2014 23:11:33    Executing build Dev Patch - Release and Deploy #17 (T4-TGDP-RD-17)
simple  08-May-2014 23:11:33    Starting task 'Source Code Checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'    simple  08-May-2014 23:11:33    Updating source code to revision: c100a20080b08f79b6d1f566dc55a1f5154ff069
simple  08-May-2014 23:11:37    Updated source code to revision: c100a20080b08f79b6d1f566dc55a1f5154ff069
simple  08-May-2014 23:11:37    Finished task 'Source Code Checkout'
simple  08-May-2014 23:11:37    Running pre-build action: Clover Grails PreBuild Action
simple  08-May-2014 23:11:37    Running pre-build action: VCS Version Collector
command 08-May-2014 23:11:37    Substituting variable: ${bamboo.build.working.directory} with /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD    command 08-May-2014 23:11:37    Substituting variable: ${bamboo.buildResultKey} with T4-TGDP-RD-17
command 08-May-2014 23:11:37    Substituting variable: ${bamboo.repository.revision.number} with c100a20080b08f79b6d1f566dc55a1f5154ff069
simple  08-May-2014 23:11:37    Starting task 'Run Phing' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
command 08-May-2014 23:11:37    Beginning to execute external process for build 'Dev Patch - Release and Deploy #17 (T4-TGDP-RD-17)'\n ... running command line: \n/usr/bin/phing -buildfile /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/bamboo-dev-patch.xml test\n ... in: /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD\n ... using extra environment variables: \nrevision=c100a20080b08f79b6d1f566dc55a1f5154ff069\nbuild_result_key=T4-TGDP-RD-17\n
build   08-May-2014 23:11:39    [00;36mBuildfile: /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/bamboo-dev-patch.xml[0m
build   08-May-2014 23:11:39    [00;32m
build   08-May-2014 23:11:39    Dev Patch Build Plan > prepare:
build   08-May-2014 23:11:39    [0m
build   08-May-2014 23:11:39    [00;36m    [mkdir] Created dir: /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/release[0m
build   08-May-2014 23:12:05    Dev Patch Build Plan > test:
build   08-May-2014 23:12:05    [0m
build   08-May-2014 23:12:05    [00;36m     [echo] tar cfj /var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/release/dev_patch_release.tar.bz2 ./[0m
build   08-May-2014 23:12:48    [00;32m
build   08-May-2014 23:12:48    BUILD FINISHED
build   08-May-2014 23:12:48    
build   08-May-2014 23:12:48    Total time: 1 minutes  9.67 seconds
build   08-May-2014 23:12:48    [0m
simple  08-May-2014 23:12:48    Finished task 'Run Phing'
simple  08-May-2014 23:12:48    Running post build plugin 'NCover Results Collector'
simple  08-May-2014 23:12:48    Running post build plugin 'Clover Results Collector'
simple  08-May-2014 23:12:48    Finalising the build...
simple  08-May-2014 23:12:48    Stopping timer.
simple  08-May-2014 23:12:48    Build T4-TGDP-RD-17 completed.
simple  08-May-2014 23:12:48    Running on server: post build plugin 'NCover Results Collector'
simple  08-May-2014 23:12:48    Running on server: post build plugin 'Clover Delta Calculator'
simple  08-May-2014 23:12:48    All post build plugins have finished
simple  08-May-2014 23:12:48    Generating build results summary...
simple  08-May-2014 23:12:48    Saving build results to disk...
simple  08-May-2014 23:12:48    Indexing build results...
simple  08-May-2014 23:12:48    Finished building T4-TGDP-RD-17.
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-05-08 23:45:32

在工件定义屏幕中:

对于Location,指定您想要为Copy pattern创建工件的文件的相对路径,指定要复制的模式。

对于您的情况,将./release放入位置框中,然后将*.bz2指定为复制模式。

有关更多信息,请参阅本期https://jira.atlassian.com/browse/BAM-2149

票数 5
EN

Stack Overflow用户

发布于 2019-02-27 08:12:37

CW答案从问题迁移而来:

由于bug Shutting down Bamboo while builds are still running causes plugins (i.e. Artifact copier plugin) disabling (https://jira.atlassian.com/browse/BAM-14585)

的系统插件“系统构建器”可能被禁用,因此它停止发布工件。

在对bug的评论中,您可以找到解决方案:

  1. 转至管理-> Manage add-ons
  2. 从筛选器下拉菜单中选择"System“
  3. 查找插件"System Builders"
  4. Enable it!

我的版本的竹子的错误仍然出现:5.4.1 build 4207 - 12 Feb 14

亚特兰大答案网站相关问题:https://answers.atlassian.com/questions/292548/bamboo-does-not-want-to-create-artifacts

Atlassian将很快发布修补程序来解决此问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23544905

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档