I'm currently running into some issues with my pipeline where is telling me that I have an issue as soon as I added the manual trigger into my pipeline.
image: node:10.8.0
options:
max-time: 15
pipelines:
default:
- step:
name: Pipeline Cypress E2E
caches:
- npm
- cypress
image: cypress/base:10
script:
- npm ci
- npx cypress run --spec "[File_Path]"
artifacts:
- cypress/reports/**
- cypress/videos/**
definitions:
caches:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress
How should I add the manual step inside of this pipeline?
Hi Alan and welcome to the community.
Since a pipeline is triggered on a commit, it is not possible to make the first step manual.
If you have only this one step and you want to trigger it manually only, you can set it up as a custom pipeline instead (custom pipelines don't run automatically on push, but can only be triggered manually or on schedule):
image: node:10.8.0
options:
max-time: 15
pipelines:
custom:
name-of-the-custom-pipeline:
- step:
name: Pipeline Cypress E2E
caches:
- npm
- cypress
image: cypress/base:10
script:
- npm ci
- npx cypress run --spec "[File_Path]"
artifacts:
- cypress/reports/**
- cypress/videos/**
definitions:
caches:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress
You will then be able to trigger it manually or on schedule:
Is this something that works for you?
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.