Jenkins如何从git commit消息执行特定的shell命令

时间:2015-04-08 07:48:02

标签: git jenkins jenkins-plugins spoon commit-message

我有3个测试命令在post build上运行,但我想在git commit消息中基于关键字运行这些命令。

Commit message: 'New changes [CoreTest]'

if(CoreTest){
   Run coreTest shell command for spoon
}else if(CloudTest){
   Run CloudTest shell command for spoon
}
else{
   AllTests shell command for spoon
}

1 个答案:

答案 0 :(得分:0)

尝试parametrized plugin来完成这项工作

(将Coretest值作为参数传递)

相关问题