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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline Trigger Manual Step

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

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
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

79 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you