[英]Jenkins how to execute particular shell command from the git commit message
I have 3 test commands to run on post build but I want to run these commands based on keyword in the git commit message. 我有3个测试命令要在构建后运行,但是我想根据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
}
Try parametrized plugin to do this job 尝试参数化插件来完成此工作
( pass Coretest value as parameter ) (将Coretest值作为参数传递)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.