1

Is it possible to configure Microsoft AppCenter to set build frequency on "Build this branch on every push" but to build if commit message contains a specific string for each push.

enter image description here

mister_giga
  • 560
  • 1
  • 15
  • 37

2 Answers2

1

you can add pre-build script, do your check then call exit 1 if needed,

reference: https://github.com/microsoft/appcenter/blob/1574250f1947cf2f595d1b63414199b167087bf0/sample-build-scripts/xamarin/app-displayname/appcenter-pre-build.sh#L64

M.Abdeldayem
  • 116
  • 3
0

You can use the following logic for this :

if ("git show $gitCommit || grep "regex" == false) 
 // { your code } do not deploy
else
// deploy