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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Theodora Boudale I removed trigger: manual from the pipeline and it worked.
Thanks for the clarification!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.