# Build not triggering for correct branch, defaults to master - Need urgent help!

**URL:** <https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072>\
**Category:** Deployment\
**Tags:** bug\
**Created:** [November 14, 2023, 12:24am UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072 "2023-11-14T00:24:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gchhablani](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gchhablani/32/8979_2.png) [@gchhablani](https://travis-ci.community/u/gchhablani)\
**Post date:** [November 14, 2023, 12:24am UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/1 "2023-11-14T00:24:56Z")

</div>

Hi,

For years, we have been using Travis to create and auto-deploy our application - EvalAI.  
However, recently the builds stopped running for our staging and production branches. Any push to those branches is run for only the master branch.  
Earlier, pushing to staging branch used to trigger the build for staging branch.

Here is a previous build on the staging branch:

- [Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/Cloud-CV/EvalAI/builds/266966658)  
You can see the cloned branch is staging (line 181).

Here is a new build after pushing on staging, the branch checked out is master:

- [Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/Cloud-CV/EvalAI/builds/267217334)

Here is the current travis configuration: [https://github.com/Cloud-CV/EvalAI/blob/master/.travis.yml](https://github.com/Cloud-CV/EvalAI/blob/master/.travis.yml)

Has there been some update in the way configurations are handled or the default parameters?  
This is stressful as we are not able to fix any bugs in our application or add new features.

Any help is appreciated.

Thanks,  
Gunjan

---

<div class="post-metadata">

**Author:** ![MarkvM](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/markvm/32/8995_2.png) [@MarkvM](https://travis-ci.community/u/MarkvM)\
**Post date:** [November 14, 2023, 12:45pm UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/2 "2023-11-14T12:45:05Z")

</div>

We have been having the same issue and Travis is working on a support ticket.

Our workaround is to push to the branch and then use the **Trigger Build** option to force the build to run on the branch.

![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/1/114f0fbd62307047c65be8debf922bda988cd8af.png)

---

<div class="post-metadata">

**Author:** ![jsadwith](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jsadwith/32/8997_2.png) [@jsadwith](https://travis-ci.community/u/jsadwith)\
**Post date:** [November 14, 2023, 6:50pm UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/3 "2023-11-14T18:50:42Z")

</div>

We’ve been experiencing the same issue for the last 8 days or so - pure speculation, but I’m wondering if this bug fix created the issue for the rest of us: [Job triggered by tag but TRAVIS\_BRANCH is different to TRAVIS\_TAG](https://travis-ci.community/t/job-triggered-by-tag-but-travis-branch-is-different-to-travis-tag/14050)

The behavior we’re seeing is that we no longer receive a `TRAVIS_TAG` and the `TRAVIS_BRANCH` is set to `master` instead of how it previously was set to the release tag.

@MarkvM - do you have a link to where Travis mentioned they are working on a support ticket for this?

---

<div class="post-metadata">

**Author:** ![MarkvM](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/markvm/32/8995_2.png) [@MarkvM](https://travis-ci.community/u/MarkvM)\
**Post date:** [November 15, 2023, 8:47am UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/4 "2023-11-15T08:47:01Z")

</div>

Hi @jsadwith  
I don’t have a link. I know they are working on it because it is my ticket and they are keeping me up to date.

I am surprised that it isn’t mentioned on the status page [https://www.traviscistatus.com/](https://www.traviscistatus.com/). I’ll add to my ticket to suggest it is important enough to mention, and perhaps they will do something about it?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [November 16, 2023, 2:30pm UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/5 "2023-11-16T14:30:55Z")

</div>

Hey all,

This should be fixed now - sorry for any delays.

---

<div class="post-metadata">

**Author:** ![gchhablani](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gchhablani/32/8979_2.png) [@gchhablani](https://travis-ci.community/u/gchhablani)\
**Post date:** [November 16, 2023, 6:40pm UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/6 "2023-11-16T18:40:12Z")

</div>

Thanks a lot everyone!  
This is fixed for me 🙂

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [November 16, 2023, 8:40pm UTC](https://travis-ci.community/t/build-not-triggering-for-correct-branch-defaults-to-master-need-urgent-help/14072/7 "2023-11-16T20:40:48Z")

</div>

Hi @gchhablani,

No problem!
