运行maven-release-plugin时在jenkins中使用flashplayer时出错。使用mvn测试时工作

时间:2012-07-30 12:33:00

标签: flex maven hudson jenkins maven-release-plugin

我在Jenkins中配置了maven 2作业,并在Build I use

下使用
 clean test release:prepare ...
目标选项中的

。 Jenkins按顺序运行这些目标,当测试运行时,它会打印(并且效果很好):

[WARNING] [LAUNCHER] Using regular flashplayer tests

但是当它试图运行准备时,我明白了,

[INFO] [WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to launch Flash Player.  Probably java was not able to find flashplayer.
[INFO]      Make sure flashplayer is available on PATH
[INFO]      or use -DflashPlayer.command=${flashplayer executable}
[INFO] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests

所以相同的工作,相同的jenkins,相同的工作配置,我如何使其工作,以便准备也像干净目标一样工作?

我也尝试了错误提示的内容,即放置:

 -Dflex.flashPlayer.command=/opt/player_10/flashplayer", "-DflashPlayer.command=/opt/player_10/flashplayer

0 个答案:

没有答案