在使用Bamboo构建期间,我们创建了文件/var/atlassian/bamboo/xml-data/build-dir/T4-TGDP-RD/release/dev_patch_release.tar.bz2
。存在此文件,使用命令行进行检查。
在工件定义'我有以下模式:**/release/*.bz2
。
但遗憾的是,在构建完成后,在Bamboo中 - >构建 - >神器No artifacts have been found for this build result.
。
同时,我在JUnit成功解析的**/extra/build/logs/*.xml
处有结果的单元测试。
所以,我还用**/extra/build/logs/*.xml
创建了另一个工件模式 - 仍然没有看到它,但是JUnit解析它。
如何使用Bamboo创建工件dev_patch_release.tar.bz2
Bamboo build Log:
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.
答案 0 :(得分:5)
在工件定义屏幕中:
对于Location
,指定要创建工件的文件的相对路径
对于Copy pattern
,请指定要复制的模式。
对于您的情况,将./release
放入“位置”框,然后将*.bz2
指定为复制模式。
有关详细信息,请参阅此问题https://jira.atlassian.com/browse/BAM-2149
答案 1 :(得分:0)
CW答案从问题中迁移出来
由于错误
Shutting down Bamboo while builds are still running causes plugins (i.e. Artifact copier plugin) disabling
(https://jira.atlassian.com/browse/BAM-14585)Bamboo的系统插件 可以禁用“系统构建器”,因此它将停止发布工件。在对该错误的注释中,您可以找到解决方案:
- 转到管理->管理加载项
- 从过滤器下拉列表中选择“系统”
- 找到插件“ System Builders”
- 启用它!
我的Bamboo版本仍然存在错误:
5.4.1 build 4207 - 12 Feb 14
。Atlassian答案网站上的相关问题: https://answers.atlassian.com/questions/292548/bamboo-does-not-want-to-create-artifacts
Atlassian即将发布补丁来解决此问题。