【发布时间】:2015-04-24 11:08:24
【问题描述】:
当我执行 git 提交时,在提交消息中我将指定 test class name 并且在 junkins 构建后步骤中我正在运行一个需要 class name 的 shell 命令(spoon) git commit 消息中的参数。
我有 6 个测试类,具体取决于应该运行的提交消息特定命令。
示例提交消息:- git commit 'update [coreTest.java]'
运行命令
java -jar spoon-runner-1.1.9-jar-with-dependencies.jar \
--apk example-app.apk \
--test-apk example-tests.apk
--class-name coreTest.java
coreTest.java是类名,应该根据提交信息放置。
【问题讨论】:
标签: android jenkins jenkins-plugins git-commit spoon