Gitlab CI running multiple times and fails with no messages

Hello,

I am attempting a very basic gitlab CI for deploying gitlab pages.

My .gitlab-ci.yml file looks like this

image: ruby:2.3

variables:
  JEKYLL_ENV: production

before_script:
- bundle install

pages:
  stage: deploy
  script:
  - bundle exec jekyll build -d public
  artifacts:
    paths:
    - public
  only:
  - master

however when I make a commit to master it appears to run the job 3 times of which the first attempt always fail. I was only expecting the process to run once so not sure why it is running multiple times and additional I have no idea why its failing on the first run, in particular when I click on the jobs tab theres no traceback or messages to explain what has gone wrong other than that the status is “retired”.

Any support or ideas on how to diagnose this would be appreciated.