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

Custom pipeline still throws an error about no manual steps in first step of pipeline.

I have a strange issue with my pipeline script.
I've configured a number of custom pipelines, however when I try to run some of them I get an error about "First step in pipeline cannot be manual"

 

Please advise.

1 answer

1 accepted

0 votes
Answer accepted

Hi @Firdaus Aga,

Based on the error message, it sounds like the first step of these custom pipelines may have trigger: manual in their definition in the yml file.

Could you please double-check and confirm if this is the case? If so, you will need to remove this from the first step in order for the pipeline to run. Is there a reason why you need the first step of a custom pipeline as manual or is it accidental? (Custom pipelines will run when you trigger them, and not automatically on every push)

If you feel comfortable sharing your yml file here, I can also double-check the reason for the error (you can remove the commands of the scripts and any names prior to sharing, just the structure of the yml file with the keywords used should be enough).

Kind regards,
Theodora

Hi Theodora,

That's absolutely right, I actually have single step pipelines which ssh an Ansible server to run builds.

Since we're in a production environment we need to trigger these manually.

I wasn't aware of this point -
Is there a reason why you need the first step of a custom pipeline as manual or is it accidental? (Custom pipelines will run when you trigger them, and not automatically on every push).

 

Just to be clear however does this mean that I need not put trigger: manual for any steps in the custom pipelines?

@Theodora Boudale I removed trigger: manual from the pipeline and it worked.

Thanks for the clarification!!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,527 views 4 8
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