我有一个Bamboo实例设置来使用以下配置进行构建:
09-Mar-2011 08:57:50 Pulling from repository `/root/POC/PRS' to directory '/root/bamboo-ci/xml-data/build-dir/_hg-repositories-cache/d20373e808a2d0e95a604129054231a0da36ff99' 09-Mar-2011 08:57:50 pulling from /root/POC/PRAEFECTUS 09-Mar-2011 08:57:50 searching for changes 09-Mar-2011 08:57:50 no changes found 09-Mar-2011 08:57:50 Copying repository from cache directory to source directory... 09-Mar-2011 08:57:50 Creating empty repository in directory '/root/bamboo-ci/xml-data/build-dir/PRQA-PRQAKEY-JOB1' 09-Mar-2011 08:57:50 Pulling from repository `/root/bamboo-ci/xml-data/build-dir/_hg-repositories-cache/d20373e808a2d0e95a604129054231a0da36ff99' to directory '/root/bamboo-ci/xml-data/build-dir/PRQA-PRQAKEY-JOB1' 09-Mar-2011 08:57:51 pulling from /root/bamboo-ci/xml-data/build-dir/_hg-repositories-cache/d20373e808a2d0e95a604129054231a0da36ff99 09-Mar-2011 08:57:51 requesting all changes 09-Mar-2011 08:57:51 adding changesets 09-Mar-2011 08:57:51 adding manifests 09-Mar-2011 08:57:51 adding file changes 09-Mar-2011 08:57:51 added 1 changesets with 810 changes to 810 files 09-Mar-2011 08:57:51 (run 'hg update' to get a working copy) 09-Mar-2011 08:57:52 810 files updated, 0 files merged, 0 files removed, 0 files unresolved 09-Mar-2011 08:57:52 Updated source code to revision: cc40b2d9c09ea747529887dd8db9319f53c5db4e 09-Mar-2011 08:57:52 Executing build PRQA-PRQAKEY-JOB1-2 09-Mar-2011 08:57:52 Running pre-build action: Build Number Stamper 09-Mar-2011 08:57:52 Running pre-build action: Clover Grails PreBuild Action 09-Mar-2011 08:57:52 Running pre-build action: VCS Version Collector 09-Mar-2011 08:57:52 Running pre-build action: Repository Isolation Enabler Action 09-Mar-2011 08:57:52 Running pre-build action: Maven Settings Prebuild Action 09-Mar-2011 08:57:52 Building started with ScriptBuilder 09-Mar-2011 08:57:52 Starting to build 'PRAEFECTUS-QA - PRQA-PLAN - Default Job' ... running command line: /bin/sh Makefile ... in : /root/bamboo-ci/xml-data/build-dir/PRQA-PRQAKEY-JOB1 09-Mar-2011 08:57:52 Makefile: 10: PYTHON: not found
但如果我们查看错误中列出的文件夹,那么Makefile就在那里
root@bambooserver:~/bamboo-ci/xml-data/build-dir/PRQA-PRQAKEY-JOB1# ls -l total 104 -rw-r--r-- 1 root root 45 2011-03-09 08:57 AUTHORS drwxr-xr-x 2 root root 4096 2011-03-09 08:57 bin -rw-r--r-- 1 root root 138 2011-03-09 08:57 build-number.txt -rw-r--r-- 1 root root 120 2011-03-09 08:57 CHANGES -rwxr-xr-x 1 root root 9703 2011-03-09 08:57 ez_setup.py drwxr-xr-x 2 root root 4096 2011-03-09 08:57 images drwxr-xr-x 2 root root 4096 2011-03-09 08:57 init.d drwxr-xr-x 5 root root 4096 2011-03-09 08:57 iped drwxr-xr-x 2 root root 4096 2011-03-09 08:57 logrotate.d -rw-r--r-- 1 root root 932 2011-03-09 08:57 Makefile -rw-r--r-- 1 root root 175 2011-03-09 08:57 MANIFEST.in drwxr-xr-x 2 root root 4096 2011-03-09 08:57 nbproject -rw-r--r-- 1 root root 1109 2011-03-09 08:57 NEWS drwxr-xr-x 5 root root 4096 2011-03-09 08:57 prs drwxr-xr-x 3 root root 4096 2011-03-09 08:57 rpa drwxr-xr-x 2 root root 4096 2011-03-09 08:57 sbin drwxr-xr-x 4 root root 4096 2011-03-09 08:57 scripts -rw-r--r-- 1 root root 81 2011-03-09 08:57 setup.cfg -rwxr-xr-x 1 root root 2796 2011-03-09 08:57 setup.py drwxr-xr-x 2 root root 4096 2011-03-09 08:57 src drwxr-xr-x 7 root root 4096 2011-03-09 08:57 test drwxr-xr-x 5 root root 4096 2011-03-09 08:57 tests -rw-r--r-- 1 root root 501 2011-03-09 08:57 TODO -rw-r--r-- 1 root root 6 2011-03-09 08:57 VERSION root@bambooserver:~/bamboo-ci/xml-data/build-dir/PRQA-PRQAKEY-JOB1#
有关如何在Bamboo中设置作业的任何提示?我使用Mercurial,项目是Python。
答案 0 :(得分:2)
我可以看到你使用了一个专门用于运行shell脚本的ScriptBuilder,而你可能需要一个运行命令的构建器
make
您需要做的是:
在这些更改之后,您的构建应该正常工作。
PS。 如果遇到未来问题,您应该尝试在Atlassian的支持网站上报告问题(http://support.atlassian.com)
免责声明:是我为Atlassian工作