2012-09-06 49 views
2

我已經在我的jenkins中安裝了vncserver,flex sdk 4.6和xvnc插件。jenkins服務器flexunit ---螞蟻無法建立沒有錯誤

不知道還有什麼我需要做的。

這是詹金斯

Building in workspace <http://example.com:8080/job/flexproject%20develop/ws/> 
Checkout:flexproject develop/<http://example.com:8080/job/flexproject%20develop/ws/> - [email protected] 
Using strategy: Default 
Last Built Revision: Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop) 
Fetching changes from 1 remote Git repository 
Fetching upstream changes from [email protected]:simkimsia/STORYBOT.git 
Commencing build of Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop) 
Checking out Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop) 
Starting xvnc 
[flexproject develop] $ vncserver :16 

New 'web1:16 (jenkins)' desktop is web1:16 

Starting applications specified in /var/lib/jenkins/.vnc/xstartup 
Log file is /var/lib/jenkins/.vnc/web1:16.log 

[flexproject develop] $ ant 
Buildfile: <http://example.com:8080/job/flexproject%20develop/ws/build.xml> 
    [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found. 

clean-all: 
    [delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit/generated-flexunit-config.xml> 
    [delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit> 
    [delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/report/flexunit> 
    [delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/report> 

clean: 
    [echo] Storybot :: clean finished. 

test-air: 
    [copy] Copying 1 file to <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit> 
    [echo] run-flexunit :: setting FLEX_HOME to ${env.FLEX_HOME} 
    [mkdir] Created dir: <http://example.com:8080/job/flexproject%20develop/ws/build/output/report/flexunit> 

BUILD FAILED 
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/target/test-air.xml>:4: The following error occurred while executing this line: 
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/base/base-macros.xml>:212: The following error occurred while executing this line: 
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/base/base-macros.xml>:174: Please specify, or verify the location for, the FLEX_HOME property. It is required when testing with 'air' as the player or when using the 'testSource' element. It should point to the installation directory for a Flex SDK. 

Total time: 2 seconds 
Build step 'Invoke Ant' marked build as failure 
Terminating xvnc. 
$ vncserver -kill :16 
Killing Xvnc4 process ID 28784 
Recording test results 

我的工作區項目在我的最後生成錯誤消息,我跑了螞蟻的build.xml

我得到

[email protected]:~/workspace/flexproject$ ant build.xml 
Buildfile: /var/lib/jenkins/workspace/flexproject/build.xml 
    [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found. 

BUILD FAILED 
Target "build.xml" does not exist in the project "flexproject". 

Total time: 2 seconds 

詮釋他的同一個文件夾時,我運行螞蟻

我得到

Buildfile: /var/lib/jenkins/workspace/flexproject/build.xml 
    [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found. 

clean-all: 
    [delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/unit/generated-flexunit-config.xml 
    [delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/unit 
    [delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/report/flexunit 
    [delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/report 

clean: 
    [echo] Storybot :: clean finished. 

test-air: 
    [copy] Copying 1 file to /var/lib/jenkins/workspace/flexproject/build/output/unit 
    [echo] run-flexunit :: setting FLEX_HOME to /opt/flex 
    [mkdir] Created dir: /var/lib/jenkins/workspace/flexproject/build/output/report/flexunit 

BUILD FAILED 
/var/lib/jenkins/workspace/flexproject/buildsupport/target/test-air.xml:4: The following error occurred while executing this line: 
/var/lib/jenkins/workspace/flexproject/buildsupport/base/base-macros.xml:212: The following error occurred while executing this line: 
/var/lib/jenkins/workspace/flexproject/buildsupport/base/base-macros.xml:174: Could not create test runner from template. 

請指教。

謝謝。

回答

0
Could not load definitions from resource flexTasks.task 

提示你錯過的路徑正確設置成flex4.6目錄(lib/*.jar內)。