Manual execution
Although normally, pipelines are executed automatically on commit or pull requests, it is possible to manually run pipelines. Not only can they be used to rerun automated pipelines, but you can also run pipelines that can only be executed manually.
In addition, we can also specify that a single step in a pipeline should be executed manually. The execution of a pipeline will pause until action is completed by the user.
Let’s look at defining manual-only pipelines.
Getting ready
You can set up pipelines that are intended to be only run manually. These pipelines are in their own section, denoted with the custom
keyword. Each pipeline has a string that describes the name, as seen in the Bitbucket UI and its steps. The following code snippet describes two manual pipelines and an automated branch pipeline:
pipelines: custom: # Pipelines that are triggered manually manual-sonar: # The name that is displayed in the...