2015-04-08 90 views
0

我有3个测试命令在post build上运行,但我想在git commit消息中根据关键字运行这些命令。Jenkins如何从git commit消息执行特定的shell命令

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 
} 

回答