Introducing: Multi-condition triggers for pipelines

Introducing: Multi-condition triggers for pipelines

Almost four years ago our pipelines received the trigger-condition treatment. Initially, you could only apply conditions to repository events, i.e. run a pipeline on the condition that a concrete file, path, or file type in the repository was modified. Next, we added variable conditions. This included settable variables, which means you could set up a specific value for the variable that will define whether the next action will run or not. The last step was adding conditions for week days and hours.

This time, in response to numerous requests, we decided to add yet another improvement that will help you fine-tune your pipelines to run exactly when required: logical condition strings connected with OR and AND.

Use case

An example use case involves a pipeline that tests and builds an application, and then runs another pipeline that will deploy the app to the selected server.

Image loading...

The general idea is that the first pipeline should run automatically on every push the master. However, the deployment should only be made during the working hours of the team to rule out an accidental release if some dev decides to tinker with the project after hours (we all know how it ends).

To set up these conditions, we need to go to the deployment pipeline and switch to – you guessed it – the Conditions tab:

Image loading...

Here we can easily set the conditions according to the pattern DAY is M,T,W,T,F && HOUR is 9 -> 18 from the newly updated Buddy's UI:

Image loading...

Piece of cake! 🍰

Hint
For now, the functionality is available for whole pipelines only. It will be introduced to individual actions soon.
Warning
Buddy is 100% customer-driven. If there’s a feature or integration you miss, drop a line to our live-chat or directly at support@buddy.works.
Jarek Dylewski

Jarek Dylewski

Customer Support

A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.

Oct 28th 2021
Share