问题描述
是否可以将Microsoft AppCenter配置为在“每次推送时构建此分支”上设置构建频率,但是是否在提交消息中包含每次推送的特定字符串时进行构建。
解决方法
您可以为此使用以下逻辑:
if ("git show $gitCommit || grep "regex" == false)
// { your code } do not deploy
else
// deploy
,
您可以添加pre-build脚本,进行检查,然后在需要时致电exit 1
,