[英]Replicate git push -m “commit message” with a different command in shell
[英]Jenkins how to execute particular shell command from 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
}
尝试参数化插件来完成此工作
(将Coretest值作为参数传递)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.