![](/img/trans.png)
[英]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.