# Trigger notification on \`git\` operation failure

**URL:** <https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832>\
**Category:** Features Requests\
**Created:** [April 11, 2023, 2:26pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832 "2023-04-11T14:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.soo](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@john.soo](https://forum.buildkite.community/u/john.soo)\
**Post date:** [April 11, 2023, 2:26pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/1 "2023-04-11T14:26:41Z")

</div>

We often miss `git` failures during `clone`, `checkout`, etc. It would be great if a notification could be triggered by those failures.

---

<div class="post-metadata">

**Author:** ![karen.sawrey](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/karen.sawrey/32/1188_2.png) [@karen.sawrey](https://forum.buildkite.community/u/karen.sawrey)\
**Post date:** [April 11, 2023, 3:43pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/2 "2023-04-11T15:43:36Z")

</div>

Hello, @john.soo!  
Thank you for your feedback! Currently, the list of possible variables for conditional notifications doesn’t include git failures. You can see the full list of supported conditional variables for notification in our [docs](https://buildkite.com/docs/pipelines/conditionals#variable-and-syntax-reference-variables).

Best!  
Karen

---

<div class="post-metadata">

**Author:** ![john.soo](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@john.soo](https://forum.buildkite.community/u/john.soo)\
**Post date:** [April 14, 2023, 5:01pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/3 "2023-04-14T17:01:34Z")

</div>

I think you’re right that a variable for conditions would help (as would `step.state`). But git operations are “special” in that I am not sure of a way to trigger a notification on git errors without reimplementing the checkout hook myself.

That’s why this is a feature request, not a question.

---

<div class="post-metadata">

**Author:** ![Michelle](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@Michelle](https://forum.buildkite.community/u/Michelle)\
**Post date:** [April 14, 2023, 8:49pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/5 "2023-04-14T20:49:49Z")

</div>

Hello @john.soo!

I’ve filed this feature request with the team!

Have a great day!  
Michelle

---

<div class="post-metadata">

**Author:** ![Ozdenyilmaz](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@Ozdenyilmaz](https://forum.buildkite.community/u/Ozdenyilmaz)\
**Post date:** [April 28, 2023, 4:49am UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/6 "2023-04-28T04:49:05Z")

</div>

Hi @john.soo ,

I am from the product team at Buildkite. To be frank, we didn’t have plans to do this any time soon. I am adding it to the backlog and will let you know if there is any movement on it.

Have a great day!  
Oz

---

<div class="post-metadata">

**Author:** ![john.soo](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@john.soo](https://forum.buildkite.community/u/john.soo)\
**Post date:** [April 28, 2023, 2:27pm UTC](https://forum.buildkite.community/t/trigger-notification-on-git-operation-failure/2832/7 "2023-04-28T14:27:11Z")

</div>

Thank you for your honesty! I think I can workaround this with a patch to the agent. Thank you again!
