# Build skipping the 'deployment' section

**URL:** <https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131>\
**Category:** Deployments\
**Created:** [February 5, 2017, 8:45pm UTC](https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131 "2017-02-05T20:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgjooon](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bgjooon](https://discuss.circleci.com/u/bgjooon)\
**Post date:** [February 5, 2017, 8:45pm UTC](https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131/1 "2017-02-05T20:45:01Z")

</div>

Hey guys,

Apologies in advance if I’m hitting a snag that has been encountered by others before me. I tried searching through the forums here and was unable to find a similar issue.

The circle.yml file I have has machine, checkout, dependencies, compile, test, and deployment sections. While I am getting successful builds on the develop branch, each build is skipping the `deployment` section (listed below).

The build environment is Ubuntu 14.04, and the process generates a container with a golang app. I have a very similar build generating a container running a node application in which the deployment section executes (not sure if this makes any difference).

Hoping for some insight on what’s going wrong.

```auto
deployment:
  #...
  gcp:
    branch: [develop]
    commands:
      - echo 'Deploying develop'
      #...
      - ./deploy/auth.sh

    branch: [master]
    commands:
      #...
      - ./deploy/auth.sh
      - kubectl #...

```

Let me know if there is anything else I can provide.

Thanks

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tom/32/27680_2.png) [@tom](https://discuss.circleci.com/u/tom)\
**Post date:** [February 6, 2017, 9:54am UTC](https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131/2 "2017-02-06T09:54:38Z")

</div>

The deployment sections should only have one `branch` and `commands` section for each label. Can you try this instead:

```auto
deployment:
  #...
  develop:
    branch: [develop]
    commands:
      - echo 'Deploying develop'
      #...
      - ./deploy/auth.sh

  master:
    branch: [master]
    commands:
      #...
      - ./deploy/auth.sh
      - kubectl #...

```

Let us know if that helps or not.

---

<div class="post-metadata">

**Author:** ![bgjooon](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@bgjooon](https://discuss.circleci.com/u/bgjooon)\
**Post date:** [February 6, 2017, 4:48pm UTC](https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131/3 "2017-02-06T16:48:16Z")

</div>

Thanks Tom! That did it.

---

<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:** [June 18, 2018, 11:41am UTC](https://discuss.circleci.com/t/build-skipping-the-deployment-section/10131/4 "2018-06-18T11:41:11Z")

</div>

Closed on June 18, 2018, 11:41am UTC


