Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger AWS codepipeline manually and not on every commit using bitbucket codestar connection

I am not able to find a way to stop the auto triggering of the pipeline whenever I push code to bitbucket.

like image 549
Saurav Prakash Avatar asked Sep 05 '25 13:09

Saurav Prakash


1 Answers

My assumption is that you want more control over when your pipeline does certain things.

Rather than achieving this through stopping the pipeline from getting triggered, I'd recommend using either stage transitions or manual approvals to achieve this control inside the pipeline.

Stage transitions are better when you want to "turn off" a pipeline and have the latest thing run through when you turn it back on.

Manual approvals are better when you want the version to be locked while waiting for approval so you can run tests without worrying that the version will change.

You mentioned in your comment that you wanted to only run your pipeline at certain times, so a way you could do that is to enable and disable the stage transition after source on a schedule.

https://docs.aws.amazon.com/codepipeline/latest/userguide/transitions.html https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals.html

like image 78
TimB Avatar answered Sep 09 '25 23:09

TimB