Circular build trigger when pushing new version setup

gradle
github
circle.yml

#1

I use a gradle plugin to manage the versioning of my project. As a part of a release, it modifies the version file, makes a commit, creates a tag, and pushes both the new commit and the tag to the current branch. This would result in an unending cycle.

At present, it appears there is only filtering on branches and not on committer. As a workaround, in the section of the build that performs the push, I’ve checked out a new branch with a hardcoded prefix. Then, in the circle.yml file, I’ve added an ignore rule to filter branches with that prefix.

However, this feels too much like a hack. I’d like the ability to filter based upon committer so that I can filter when the build machine makes a commit to any branch.


#2

I have a similar requirement and am going to explore using the commit message to skip the build.

https://circleci.com/docs/1.0/skip-a-build/


#3

Thanks for that. I’ll investigate as well.


#4

How did you resolve this?


#5

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.