I'm trying to do something like CircleCI's [ci skip] tag, which lets developers "opt in" to building the project, i.e. the commit message determines whether a build proceeds. A buildit
string in commit message would make the build proceed, otherwise it terminates in pre-build stage.
I'm aware of this project: https://github.com/thii/aws-codebuild-extras. It provides the git message as an environment variable, but not sure how to add an if statement
in the buildspec.yml which would terminate the build early if buildit
is absent from the message.