Only master branch detected and building

Please help :slight_smile: I have a few branches in github but I can only see the master branch in my CircleCI projects. I thought CircleCI is supposed to detect all branches automatically.

I have used the default config file provided on project setup:

# Java Maven CircleCI 2.0 configuration file
# Check for more details
version: 2
      # specify the version you desire here
      - image: circleci/openjdk:8-jdk

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at
      # - image: circleci/postgres:9.4

    working_directory: ~/repo

      # Customize the JVM maximum heap limit
      MAVEN_OPTS: -Xmx3200m

      - checkout

      # Download and cache dependencies
      - restore_cache:
          - v1-dependencies-{{ checksum "pom.xml" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      - run: mvn dependency:go-offline

      - save_cache:
            - ~/.m2
          key: v1-dependencies-{{ checksum "pom.xml" }}

      # run tests!
      - run: mvn integration-test

I would upload more images but I’m a new user so I am limited to only one image… github link is here

Sorry for the trouble. Solved my own issue. New to CI / CD and realised you had to push a change to the repo first before it will detect the branch and start a build.