# Circular build trigger when pushing new version setup

**URL:** <https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404>\
**Category:** Deployments\
**Tags:** github, gradle, circle-yml\
**Created:** [May 4, 2017, 3:27pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404 "2017-05-04T15:27:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryansgot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ryansgot/32/15956_2.png) [@ryansgot](https://discuss.circleci.com/u/ryansgot)\
**Post date:** [May 4, 2017, 3:27pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404/1 "2017-05-04T15:27:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![djones](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/djones/32/9063_2.png) [@djones](https://discuss.circleci.com/u/djones)\
**Post date:** [May 12, 2017, 8:45pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404/2 "2017-05-12T20:45:58Z")

</div>

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/](https://circleci.com/docs/1.0/skip-a-build/)

---

<div class="post-metadata">

**Author:** ![ryansgot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ryansgot/32/15956_2.png) [@ryansgot](https://discuss.circleci.com/u/ryansgot)\
**Post date:** [May 21, 2017, 1:06pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404/3 "2017-05-21T13:06:31Z")

</div>

Thanks for that. I’ll investigate as well.

---

<div class="post-metadata">

**Author:** ![agordeev](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/agordeev/32/18102_2.png) [@agordeev](https://discuss.circleci.com/u/agordeev)\
**Post date:** [April 12, 2018, 4:37pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404/4 "2018-04-12T16:37:40Z")

</div>

How did you resolve this?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [July 11, 2018, 4:37pm UTC](https://discuss.circleci.com/t/circular-build-trigger-when-pushing-new-version-setup/12404/5 "2018-07-11T16:37:46Z")

</div>

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