簡體   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