Is it possible to skip commits for git material based on the following conditions?
- Whitelist and blacklist together (whitelist, for example: ci/*, project/*; blacklist: project/README.md), when all these files are in the same repo
- Commits with certain commit message or user
- During the build, I want gocd to make a commit & tag for the code I'm building, then make git push. But I don't want this commit to trigger another build, making an endless loop. Common practice is "[ci skip]" token in commit message
If that's not currently possible, is there a way to cancel the build from the code?
I'd take a look at git log manually then, and return from script with non-zero exit code, for instance.
But I don't want to fail the build, just cancel it.
Please suggest, as I can't find anything on that in documentation/stackoverflow.
Thanks in advance!