Ability to skip commits for git material

143 views
Skip to first unread message

Max Romanovsky

unread,
Jun 12, 2017, 10:32:42 AM6/12/17
to go-cd
Is it possible to skip commits for git material based on the following conditions?
  1. Whitelist and blacklist together (whitelist, for example: ci/*, project/*; blacklist: project/README.md), when all these files are in the same repo
  2. Commits with certain commit message or user
    1. 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!

Vishwanath Arondekar

unread,
Jul 14, 2019, 2:18:35 PM7/14/19
to go-cd
@Max Were you able to solve this ?

bump. This needs answer. 

Chris Flynn

unread,
Jul 16, 2019, 10:48:28 AM7/16/19
to go-cd
I would definitely love to not trigger the pipeline while tagging code in Git during the release process. I would vote for this enhancement.
Reply all
Reply to author
Forward
0 new messages