Hi guys,
I’m stuck in a situation when I need to run pipeline manually or via a trigger. After clicking on Run pipeline and create pipeline I’ve received an error " The form contains the following error:* No stages / jobs for this pipeline." The same error code if I execute trigger with CURL.
current YML file is:
check:
stage: test
script:
- ssh -o StrictHostKeyChecking=no mars@host1 ls -lah
except:
changes:
- .gitlab-ci.yml
only:
- master
- web
- triggers
- schedules
- api
when: manual
deploy:
stage: deploy
environment:
name: bamljp6
script:
- ssh -o StrictHostKeyChecking=no mars@host1 date
except:
changes:
- .gitlab-ci.yml
when: manual
I need to setup environment where is check is done by every push/merge, but deploy can be executed only manual or via trigger.