Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline Trigger Manual Step

Alan Andres Haro January 25, 2021

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? 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2021

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events