繁体   English   中英

詹金斯如何从git commit消息执行特定的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM