title: Gitlab - Defined stages for CI and CD are not being taken in the pipeline
body: <p>I have a .gitlab-ci.yml file as below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>image: node:6.10.3
  
  stages:
    - ver
    - init
    - deploy
  
  ver:
    stage: ver
    script:
      - node --version
      - whoami
  init:
    stage: init
    script:
      - npm cache clean
      - rm -rf node-modules
      - npm install
  
  deploy_staging:
    stage: deploy
    before_script:
    - 'which ssh-agent || ( apt-get update -y &amp;&amp; apt-get install openssh-client -y )'
    - mkdir -p ~/.ssh
    - eval $(ssh-agent -s)
    - '[[ -f /.dockerenv ]] &amp;&amp; echo -e "Host *\n\tStrictHostKeyChecking no\n\n" &gt; ~/.ssh/config'
    script:
      - ssh-add &lt;(echo "$STAGING_PRIVATE_KEY" | base64 --decode)
      - git pull
      - echo "deployed to staging server"
    environment:
      name: staging
      url: MY SERVER
  
    only:
      - master</code></pre>
  </div>
  </div>
  </p>
  
  <p>In Gitlab when I go to pipeline <strong>I am expecting to see 3 stages which are ver, init, and deploy</strong>. <strong>However, It only takes the first to stages and I don't see anything for deploy.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Gvvvv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gvvvv.png" alt="enter image description here"></a></p>