GitLab CI Start job manually (deployment)

Pekarcik Patrick picture Pekarcik Patrick · Apr 16, 2016 · Viewed 13.1k times · Source

Is it possible to mark gitlab ci jobs to start manually?

I need it for deploying application but I want to decide if it's going to be deployed

Answer

MOnsDaR picture MOnsDaR · Sep 30, 2016

This has changed since the first answer has been posted. Here's the link to the original Gitlab Issue. It is now supported to do something like

production:
  stage: deploy
  script: run-deployment $OMNIBUS_GITLAB_PACKAGE
  environment: production
  when: manual

Note the when: manual attribute. The UI updates itself to provide a way for users to trigger the job.