# Push doesn't trigger workflow

**URL:** <https://discuss.circleci.com/t/push-doesnt-trigger-workflow/31437>\
**Category:** Build Environment\
**Created:** [July 18, 2019, 5:45pm UTC](https://discuss.circleci.com/t/push-doesnt-trigger-workflow/31437 "2019-07-18T17:45:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ampeixoto](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ampeixoto](https://discuss.circleci.com/u/ampeixoto)\
**Post date:** [July 18, 2019, 5:45pm UTC](https://discuss.circleci.com/t/push-doesnt-trigger-workflow/31437/1 "2019-07-18T17:45:46Z")

</div>

I am trying to configure a CI pipeline for my Android app.

I am using the following config to run my unit tests:

```
version: 2
jobs:
  test:
    working_directory: ~/code
    docker:
      - image: circleci/android:api-28
    environment:
      JVM_OPTS: -Xmx3200m
    steps:
      - checkout 
      - restore_cache:
          key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. 
# command: sudo chmod +x ./gradlew
      - run:
          name: Download Dependencies
          command: ./gradlew androidDependencies
      - save_cache:
          paths:
            - ~/.gradle
          key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
      - run:
          name: Run Tests
          command: ./gradlew test
workflows:
  version: 2
  test_wf:
    jobs:
      - test:
          filters:
              branches:
                  only: circleci-integration

```

However the build in CircleCI doesnt appear. Already checked [this](https://circleci.com/docs/2.0/workflows-not-starting/) but no build with yellow tag is displayed.

And in bitbucket I can see that the webhook was executed with code 200 (Success).

What is interesting, is that when I add the branches section in the job like this:

```
version: 2
jobs:
  test:
    branches:
      only:
        - circleci-integration
    working_directory: ~/code
...

```

The build is triggered but it fails with the following error:  
`Job \"test\" has filters configured in the job definition. These filters are incompatible with workflows.`

 ![circleci-fail](https://global.discourse-cdn.com/circleci/original/3X/7/e/7e8ef10a0ed20c934454b095833504b3f0423e48.png)

Does anyone why this is happening? Why with my config, CircleCI doesn’t start the build?

---

<div class="post-metadata">

**Author:** ![ampeixoto](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@ampeixoto](https://discuss.circleci.com/u/ampeixoto)\
**Post date:** [July 19, 2019, 10:22am UTC](https://discuss.circleci.com/t/push-doesnt-trigger-workflow/31437/2 "2019-07-19T10:22:30Z")

</div>

Found the main problem… Just a TYPO in the branch name!!

---

<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 29, 2019, 10:22am UTC](https://discuss.circleci.com/t/push-doesnt-trigger-workflow/31437/3 "2019-07-29T10:22:33Z")

</div>

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