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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,328 views 0 3
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